In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['q', 6181, 'N', 8767, '4907', '1545', 't', 't', '4981', '6565', '8385', '4247', '3411', '7221', 'N', '5015', 'h', 6111, 2591, 'y'], [6159, 'O', '4907', '1545', 't', 't', '4981', '6565', '8385', '4247', '3411', '7221', 'N', '5015', 'E', 'X', 'F', 3295, 361, 6303, 8785, 'P']