In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['I', 5271, 9321, 3961, 'K', 'p', 'i', 'L', 'E', 'U', '8773', '9987', '3223', 'w', 'z', 'x', '1787', '2389', 'Q', 7339], ['C', 'y', 1189, 'p', 'O', 4427, 'C', 'U', '8773', '9987', '3223', 'w', 'z', 'x', '1787', '2389', 'h', 'L']