In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 8541, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'r', 3095, 't', 'i', 5121, 2147, 'O', 4145, 1995, 'E', 'a'], ['g', 'v', 491, 'F', 'Q', 8013, 5789, 6119, 'p', 8193, 'G', 6543, 'n', 'f', 5239, 'z', 'A', '3985', '181', 'k', '6327', '4303', 'Q', '6295', 'i', 'b', 'A', 'h', 'f', '4947', 'N', '4649', 'S', '1957', '2921', '7817', 'i', 'y', 9617, 4351, 'X', 9425, 3497, 6049, 8113]