In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8797, 'V', 3859, 'i', 'S', 5899, 'j', 6225, 'Y', 'V', 7337, 'P', 'D', 'e', 4347, 345, 'o', '1321', 'Z', 'X', 'e', 'X', '119', 'X', 'g', 'W', 'H', '643', 'J', 'f', 'A', '3309', 'x', '3453', '7247', 'J', 'G', 'S', 'Y', 5911, 'm', 4531, 'w', 'X', 953, 'q', 5693, 'd', 'E', 'n', 8511], [5397, 2087, 'q', 'U', 8233, 'V', 'X', 'y', 6257, 8221, '1321', 'Z', 'X', 'e', 'X', '119', 'X', 'g', 'W', 'H', '643', 'J', 'f', 'A', '3309', 'x', '3453', '7247', 'J', 'X', 'j', 1675, 'l', 'A', 455, 'Z', 7971, 'L', 2295, 5749, 801, 1527, 'h', 'o', 9511, 'm', 2417, 'q']