Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['d', 703, 8813, 365, 'S', 9003, 5701, 5559, '2739', '1221', '2717', '8471', 'G', 'j', 'u', 'K', 't', 'P', 'V', 'Z', 'W', '2373', '4767', '7187', 'K', 'i', 'g', 'd', 4025, 369, 2589, 'M', 'M', 5337, 6099], [8465, 8531, 's', 'R', 7655, 'O', 2393, 'T', 'W', '2739', '1221', '2717', '8471', 'G', 'j', 'u', 'K', 't', 'P', 'V', 'Z', 'W', '2373', '4767', '7187', 'K', 'u', 3243, 2083, 'p', 'u', 4915, 'x', 'r', 'C', 'Q', 7077]
Output:
2739, 1221, 2717, 8471, G, j, u, K, t, P, V, Z, W, 2373, 4767, 7187, K