In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['i', 5859, 9001, 'G', 9067, 'G', 'o', 5355, 'l', 'x', 'E', 'm', 'q', '7265', 'c', '3279', '6563', '9377', 'g', '3817', '8001', 'i', '7557', '1377', '5159', '6213', 'Z', 'n', 'p'], [9683, 'T', 1675, 565, 'l', 'E', 'm', 'q', '7265', 'c', '3279', '6563', '9377', 'g', '3817', '8001', 'i', '7557', '1377', '5159', '6213', 'Z', 'Y', 4419, 7473, 8291, 's', 5303]