In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example Input: ['l', 581, 4659, 2559, 'f', 'S', '1219', '6225', '515', '5369', 'w', 'V', 7431, 6195, 1731, 'J', 9541], [8813, 7733, 'n', 'a', 'h', 981, 'S', '1219', '6225', '515', '5369', 'w', 'q', 'A', 'U', 'J']
Example Output: S, 1219, 6225, 515, 5369, w

Example Input: [1875, 'T', 'Y', '5527', 'F', 'y', '5669', 'm', 'k', 2655, 8089], [3997, 7707, 9937, 'M', '5527', 'F', 'y', '5669', 'm', 'a', 'e']
Example Output: 5527, F, y, 5669, m

Example Input: [9487, 'W', 6879, 5217, 'B', 7195, 3359, 2801, 6433, 's', 1169, 'h', '6065', 'J', 'u', '7303', '1631', '37', '6199', 'J', '6871', '9749', 'P', '4827', '5077', 'L', 'e', 'y', 8515, 'g', 'e', 'u', 'l', 9535], [7969, 'c', 'A', 3311, 'J', 6327, 2135, 6741, 7589, 'X', 'j', 789, '6065', 'J', 'u', '7303', '1631', '37', '6199', 'J', '6871', '9749', 'P', '4827', '5077', 'T', 7723, 'D', 'i', 'Y', 5287, 889, 'W', 'W']
Example Output:
6065, J, u, 7303, 1631, 37, 6199, J, 6871, 9749, P, 4827, 5077