Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['U', 'E', 'p', 1287, 'A', 7515, 'u', 1463, 'O', 6587, 4475, 9715, 707, 'G', 'y', 1081, 2677, 'X', 5971, 6053, 7555, 'P', 115, 'a', '1619', 'v', 'E', '2135', 'z', '5225', 'c', 'j', 'b', 'r', '4935', 'Q', 'K', 'B', 'N', '8187', 'q', '5373', 'B', '3859', 'S', '965', '5629', '8935', 'D', '4531', '447', '1137', 'p', 'R', 487, 'W', 1449, 'T', 'd', 'h', 'H', 5967, 4829, 'v', 'C'], [8347, 9913, 'a', 'P', 'e', 7079, 't', 'N', 1223, 'H', 9087, 'X', 'o', 'I', 'Z', 2263, 403, 'D', 6889, 8243, 'A', 'a', '1619', 'v', 'E', '2135', 'z', '5225', 'c', 'j', 'b', 'r', '4935', 'Q', 'K', 'B', 'N', '8187', 'q', '5373', 'B', '3859', 'S', '965', '5629', '8935', 'D', '4531', '447', '1137', 'F', 3619, 5327, 9895, 8417, 6463, 'e', 't', 413, 9007, 'G', 8479, 5347, 127, 'Q', 3197, 'u', 8425]
Output:
a, 1619, v, E, 2135, z, 5225, c, j, b, r, 4935, Q, K, B, N, 8187, q, 5373, B, 3859, S, 965, 5629, 8935, D, 4531, 447, 1137