In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3265, 1713, 7561, 4199, 'm', 'm', 7871, 'L', 'p', '7809', '4853', 'x', 'A', 'G', 'X', 'A', 'e', 'd', 'c', '2827', 'A', 'T', '2113', '9387', 'n', 'N', 'N', 'W', 'Z', 'Q', 'J'], [1247, 'U', 'k', 9111, 431, 2795, 'J', 'w', 2719, 1225, 'x', 'w', 'E', 'p', '7809', '4853', 'x', 'A', 'G', 'X', 'A', 'e', 'd', 'c', '2827', 'A', 'T', '2113', '9387', 'n', 'N', 'A', 'D', 'v', 753, 9433, 'c', 'x', 2107, 953, 1035]