In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['G', 1671, 8017, 'X', '7837', '2861', 'N', '7525', '6523', 'R', 5789, 'H', 153, 1347], [6443, 'a', 'K', 475, 'S', 4727, 'X', '7837', '2861', 'N', '7525', '6523', 'q', 'l']