In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Z', 4627, 7793, 7579, 'z', 'P', 'M', 4977, 'g', 'Z', '6515', '1343', 'h', '2377', 'o', 'W', 'J', 'r', '863', 'S', 'o', 'H', '8491', 'y', 'R', '7217', 'a', 'X', 'a', 'H', 'W', 'v'], ['M', 5999, 'o', 9659, 1297, 'V', 9617, 'q', 'J', 'T', 'W', '6515', '1343', 'h', '2377', 'o', 'W', 'J', 'r', '863', 'S', 'o', 'H', '8491', 'y', 'R', '7217', 'T', 'e', 't', 'p', 'm', 5925, 389, 'F', 'R', 'X']