In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['E', 'N', 3377, 'g', 2413, 1185, 1265, 'u', 'O', 83, 'J', 8585, 7247, 'C', '5587', '3639', '8067', 'r', '2505', 'k', '5711', 'F', '627', '3157', '5139', 'n', 'P', '5697', 'N', '7525', '1545', 'w', 1323, 'y', 'l', 9331, 4579, 9625, 'j', 'Q'], [3289, 5107, 4535, 'p', 5897, 'D', '5587', '3639', '8067', 'r', '2505', 'k', '5711', 'F', '627', '3157', '5139', 'n', 'P', '5697', 'N', '7525', '1545', 'p', 1465, 8115, 5421, 9313, 665, 4197, 'g']