In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['l', 'z', 3107, 1329, 9503, 8987, 'Y', 'e', 'v', 'M', '1845', '3463', 'x', '7075', 'h', '1261', 'n', 'U', 'S', '7519', '3595', 'd', 413, 'I', 'd', 8415], [123, 'p', 'M', '1845', '3463', 'x', '7075', 'h', '1261', 'n', 'U', 'S', '7519', '3595', 'j', 'L', 'c', 6841, 'H', 2839, 'P']