In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['x', 'n', 1513, '651', '1597', '2679', '3847', 'm', 'g', 'e', 'c', 5435, 'a'], ['s', 'A', 'F', 'Q', 4437, '651', '1597', '2679', '3847', 'm', 'g', 'T', 'q', 9613, 4919, 2471, 4325]