In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['R', 'y', 1801, 'Z', 'd', 'o', 'U', '3973', '8949', 'J', '9027', '4117', 'a', 'X', 'G', '9531', 'q', 'n', 'J', 'd', 699, 9531, 3581, 4797, 7167], [1703, 4203, 2287, 'p', 8055, 'R', 'L', 1769, 'd', 'o', 'U', '3973', '8949', 'J', '9027', '4117', 'a', 'X', 'G', '9531', 'q', 'n', 'J', 'E', 'Y', 2665, 1307]