In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Z', 6799, 'h', '5523', '3861', '7595', 'a', '1855', '2595', '9395', 'x', 'e', 1999, 4229], ['o', 2087, 5573, 1565, 'h', '5523', '3861', '7595', 'a', '1855', '2595', '9395', 'x', 'r', 'J', 635]