In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['l', 'g', 'c', 'r', '575', 'n', 'j', '5635', '6619', 'D', '6185', '2047', '4297', 'u', 'k', 'o', 'Q', 8571, 9887, 'U', 3465, 5839], [2343, 'H', 2633, 'A', 'm', 6745, 'I', 'r', '575', 'n', 'j', '5635', '6619', 'D', '6185', '2047', '4297', 'X', 'I', 'g', 'H', 1231, 1595]