In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['q', 6163, 'H', 'm', 3639, 'n', 1293, 1905, '3989', 'm', '5685', 'q', 'J', '3469', 'C', '139', 'K', '9309', 'h', 'R', 'm', 'k', 'Z', 'i', 3193, 5063, 9631, 8389, 'U', 7837, 2399, 8311, 'e', 3167], ['n', 8731, 6727, 'i', 'z', 'm', 9373, '3989', 'm', '5685', 'q', 'J', '3469', 'C', '139', 'K', '9309', 'h', 'R', 'm', 'j', 'x', 'e', 'K', 'U', 5815, 7717]