In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2737, 'K', 8671, 5669, 3211, 'V', 'Z', 'L', 5919, 2669, 'Z', 'p', '5657', '949', '3337', 'M', 'P', 'T', 'T', '8901', 'T', 'I', '5799', '501', 'g', 'S', '8877', 's', 5647, 'd'], [3715, 9001, 9639, 'V', 9051, 'g', 5265, 4003, 8087, 'p', '5657', '949', '3337', 'M', 'P', 'T', 'T', '8901', 'T', 'I', '5799', '501', 'g', 'S', '8877', 'U', 'b', 'X', 7585, 'B', 'T', 1967, 'g', 5599, 1275]