In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['I', 'M', '10029', 'E', 'N', '2123', 'r', 'a', 9515, 'x', 'J'], [9785, 'R', 'o', '10029', 'E', 'N', '2123', 'r', 'P', 1501, 9365, 'L']