In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'c', 271, 's', 6213, 9761, 9517, 6847, 'Q', 'Z', 'M', 5187, '4881', '9415', 'd', 'r', 'h', 's', 'I', 'x', '3033', '5367', '9719', '3689', 'g', 's', 'U', 3897, 'p', 5591, 4295, 8827, 'Y', 'I', 2525, 8721, 'j'], ['C', 'q', 7445, 'p', 't', 2077, 'L', 'U', '4881', '9415', 'd', 'r', 'h', 's', 'I', 'x', '3033', '5367', '9719', '3689', 'g', 'l', 5111, 9155, 'n', 'm', 3719, 8281, 567]