In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['K', 1377, 1821, 'X', 6521, 7063, 7843, 9247, 'E', '251', 'w', '1291', 'X', 'H', '251', '5125', '8347', 'h', '4879', '29', '4815', 'E', '3215', '8943', '3077', 'o', 8817, 9433, 'B', 3249, 'E', 5733, 'q', 'H', 'B'], [9389, 1247, 8815, 'Q', 'G', 4345, 1421, 'v', 1819, 1573, 'D', 1565, 'E', '251', 'w', '1291', 'X', 'H', '251', '5125', '8347', 'h', '4879', '29', '4815', 'E', '3215', '8943', '3077', 'l', 'a', 'N', 5109, 7737, 'a', 'w', 7109, 'U', 6655, 'x', 4383, 2365, 'r', 'i', 1189]