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

Input: Consider Input: [6017, 2811, '8157', '9625', 'P', 3629], [7857, 1357, '8157', '9625', 'z', 'z']

Output: 8157, 9625


Input: Consider Input: [7231, 2153, '3257', '3693', 'P', 3291], [1543, 6411, '3257', '3693', 'G', 'k']

Output: 3257, 3693


Input: Consider Input: [5031, 'Y', 'G', 'L', 6477, 7521, '9249', 'K', '9613', 't', 'h', 'I', 'b', '2137', '9975', '153', 'K', 'U', '4835', 'r', 'C', '6535', 'c', 't', 1119, 649, 3615, 6273, 'W', 1639, 2587], ['r', 2363, '9249', 'K', '9613', 't', 'h', 'I', 'b', '2137', '9975', '153', 'K', 'U', '4835', 'r', 'C', '6535', 'c', 'x', 3887]


Output: 9249, K, 9613, t, h, I, b, 2137, 9975, 153, K, U, 4835, r, C, 6535, c