In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['x', 'k', 8311, 'S', 'T', '1055', 'R', 'A', 'X', '5313', 'x', 1223, 8627, 'y', 'u'], ['w', 3745, 'q', 'T', '1055', 'R', 'A', 'X', '5313', 'z', 9143, 5097, 'c', 'O', 2289]