In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Y', 6563, 't', '787', '3929', '2879', '9407', 'G', 'G', '6107', 'C', '4253', '1063', 't', 'p', 'g', 6927, 3649, 'H', 1143, 'L', 'z', 'm', 'O', 'B', 'P'], [8589, 3233, 6489, 'J', 951, 'C', 6435, 6733, '787', '3929', '2879', '9407', 'G', 'G', '6107', 'C', '4253', '1063', 't', 'p', 'Y', 7021, 'M', 6007]