Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['y', 8601, 'P', 1181, 'm', 'g', 503, 1285, 2143, 1231, 'A', 7361, 'h', 9425, 'B', 5885, 5831, 2863, 'Q', '8035', 'P', '7441', '3519', 'n', '4319', '1103', 'X', '1631', '6275', '267', 'o', '91', '1837', 'A', '8037', 'a', '5323', 'b', '7361', 'M', 'L', 'a', 'U', '6503', 'e', 'm', 'r', 'P', 3983], ['P', 6397, 2063, 7355, 7571, 'K', 1301, 8073, 'q', 'z', 'X', 1415, 343, 5879, 5841, 'v', 'R', 'I', 7529, 'Q', '8035', 'P', '7441', '3519', 'n', '4319', '1103', 'X', '1631', '6275', '267', 'o', '91', '1837', 'A', '8037', 'a', '5323', 'b', '7361', 'M', 'L', 'a', 'U', '6503', 'e', 'X', 'y', 9207, 3713, 7153, 'N', 4599, 7023, 'I', 1425, 4291, 9433, 805, 't', 'A', 633, 3005]
Output:
Q, 8035, P, 7441, 3519, n, 4319, 1103, X, 1631, 6275, 267, o, 91, 1837, A, 8037, a, 5323, b, 7361, M, L, a, U, 6503, e