In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8675, 2987, '335', 'I', 'Y', 'T', '8995', 'Z', 'p', 3337, 9051, 5849], [3523, 'n', 7349, 7295, 5085, '335', 'I', 'Y', 'T', '8995', 'w', 2103, 7667, 1685, 7659]