In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['x', 'g', 'h', 'J', 2825, 5333, 5677, 6409, '3057', 'I', 'O', '5449', '567', 'y', '2895', '2953', 'u', 5845, 5059, 2587], [2529, 'P', 8729, 1487, 'w', '3057', 'I', 'O', '5449', '567', 'y', '2895', '2953', 'O', 1957, 2221, 'x', 'n', 6149, 't']