In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 4819, 'X', 5165, 507, 7717, 6381, 'r', 'i', 'X', 7667, 'u', 'V', '8787', 'i', 'l', '2909', 'K', 'c', 'w', '7033', 'F', '1585', 'i', 'o', 'E', 4925, 'y', 'N', 't', 'X', 'A'], [6185, 1045, 7403, 'E', 'G', 'u', 'V', '8787', 'i', 'l', '2909', 'K', 'c', 'w', '7033', 'F', '1585', 'w', 'i', 'j', 5077, 4569, 'W', 8287, 'K', 7881, 1465]