In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['A', 'g', 1493, 771, 'E', 'b', 'p', 5019, 2577, 3947, 'B', 6727, 'R', 'F', 'k', 'R', '5987', 'v', '3479', '8299', '9299', '5049', '9209', 'P', '5911', '2811', '9923', '5091', '5947', 'u', 't', 9123, 3383, 1125, 331, 7663, 3781, 'c', 'd', 7741], [1997, 'z', 'w', 6473, 'G', 'a', 3025, 'i', 1775, 4929, 'A', 'R', 'F', 'k', 'R', '5987', 'v', '3479', '8299', '9299', '5049', '9209', 'P', '5911', '2811', '9923', '5091', '5947', 'I', 6481, 'q', 'g', 4309, 'X', 's', 'N', 7059, 3433, 3225, 5461, 7957, 9949, 'M', 'R', 3017]