In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['R', 4409, 4717, '1089', '2701', 'N', '6995', 'l', 1629, 't', 1709], ['p', 1663, 'z', 'w', '1089', '2701', 'N', '6995', 'Q', 5667, 'Y']