In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 5895, 8161, 3765, 4143, 'H', 223, 4965, 'E', 9967, 2707, 7969, 2951, 4649, 'x', 'y', 'B', 'w', 'c', '9799', '3839', 'n', 'F', '2273', '1955', 'H', '3685', 'E', 'T', 'K', 3025, 'Q', 'Z', 'L', 'I'], [6049, 2181, 'z', 'n', 'T', 'C', 'Q', 7373, 6343, 1807, 'x', 'y', 'B', 'w', 'c', '9799', '3839', 'n', 'F', '2273', '1955', 'H', '3685', 'E', 'N', 5943, 7911, 3427, 'x', 3605, 'd']