In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[945, 4585, 'o', 3241, 2939, 'R', 4527, 4165, 9787, 'g', 'r', 'Z', 'Z', 795, 6339, 'z', 'l', 975, 'Z', 'E', 2271, 'N', 'j', 'B', '3109', '3433', '4567', 'J', '6531', '8439', '7195', '2965', '2541', 'c', 'U', 'l', '4399', 'o', '4555', 'A', '5377', '509', 'A', 'S', '1045', '423', '6507', '795', '1819', 'Q', 'x', 'I', 3515, 'Q', 1753, 8335, 'I', 9425], ['W', 'w', 't', 'k', 6657, 'a', 6467, 'N', 'j', 'B', '3109', '3433', '4567', 'J', '6531', '8439', '7195', '2965', '2541', 'c', 'U', 'l', '4399', 'o', '4555', 'A', '5377', '509', 'A', 'S', '1045', '423', '6507', '795', '1819', 'Q', 'x', 'S', 'u', 1253, 2295, 'R', 473, 'n', 'X', 5587, 8371, 'Z', 419, 's', 9749, 9781, 'u', 'a', 'L', 6299, 6293, 7753, 3093, 'F', 4905]