In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['P', 5731, 'w', 5173, 'o', 1389, 'q', '9777', '261', '4657', '301', '1205', 'g', 'H', 'I', 4177, 'k', 8557, 'T', 471], [987, 'W', 'H', '9777', '261', '4657', '301', '1205', 'g', 'H', 'h', 8913, 6625]