In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6123, 3749, 'S', 2661, 1219, 'X', 'h', 871, 'N', 'j', 'h', 'B', '2115', 'P', '8285', 'X', '4023', 'z', '5863', '8637', 'U', '7355', '2487', '7567', '3031', '2373', 'P', 'o', 'h', 'K', 3259, 1387, 'y', 7603, 7381, 1723, 3293, 1639, 6655, 'A', 'X'], [4625, 3181, 'q', 685, 8003, 'R', 6959, 'B', '2115', 'P', '8285', 'X', '4023', 'z', '5863', '8637', 'U', '7355', '2487', '7567', '3031', '2373', 'P', 'o', 'h', 'B', 71, 'T', 'R', 959, 'q', 'K', 9317, 929, 4199, 9545, 7183, 'z', 'p', 8501, 'g']