In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['m', 'g', 2559, 'S', 1415, 'e', 9009, 3139, 'o', 8917, 'O', 'B', 5733, 7635, 9039, 'y', 4427, 'I', 6025, 9093, 'n', 5913, 5957, 'c', 7745, 6735, '1507', '9113', 'n', '6211', '5315', '3311', '6323', 'k', 'j', '9217', '6197', '2983', '6911', '6321', 'q', '8353', 'H', '4097', 'p', 'N', '131', '7503', '1597', '5219', 'A', '9297', 'A', 'y', 'I', 'w', 'A', 'S', 'e', 37, 4835, 'x', 7713, 'g', 'T', 4785, 6625, 1343, 'r', 'l', 8201, 4541, 2609, 767, 8855, 'z'], [7285, 'e', 'e', 8185, 'p', '1507', '9113', 'n', '6211', '5315', '3311', '6323', 'k', 'j', '9217', '6197', '2983', '6911', '6321', 'q', '8353', 'H', '4097', 'p', 'N', '131', '7503', '1597', '5219', 'A', '9297', 'A', 'y', 'I', 'w', 'g', 3015, 6503, 'k']