In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5085, 'Q', 'B', 5223, 'y', '3545', '1477', '3571', '4297', '535', '6613', 'X', 'J', 'x', 'Y', 'o', '2153', '9699', 'Z', 'J', '8377', '3515', '8337', '2121', 'C', 'F', 'g', 5163, 'm', 5633, 'n', 'v', 4753, 4455, 'D', 5763, 'x', 887], [5471, 9379, 'V', 803, 'G', 2491, 'y', '3545', '1477', '3571', '4297', '535', '6613', 'X', 'J', 'x', 'Y', 'o', '2153', '9699', 'Z', 'J', '8377', '3515', '8337', '2121', 'C', 'F', 'R', 7643, 5789, 'v', 'x', 6891, 'P', 'C', 8837, 'd', 9507]