Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [9777, 5839, 2213, 665, '1019', 'U', '5889', 'J', 'i', '7049', 'k', 'U', 'l', '629', '4689', '4357', '3191', 'm', '41', 'u', '865', '6485', '5607', 'F', 'H', 1065, 8263, 2847, 115, 533, 'D', 'N', 'N', 1755, 'm', 's', 'T', 2249], [5235, 'X', 'l', 2947, 'n', 7553, 811, 5229, 7677, 5429, 'W', 's', '1019', 'U', '5889', 'J', 'i', '7049', 'k', 'U', 'l', '629', '4689', '4357', '3191', 'm', '41', 'u', '865', '6485', '5607', 'y', 7943, 1091, 'N', 'w', 8341, 8163, 'u', 'T', 9811, 2127, 't', 'F', 'i', 'v', 'e', 867, 4409, 1661]
Output:
1019, U, 5889, J, i, 7049, k, U, l, 629, 4689, 4357, 3191, m, 41, u, 865, 6485, 5607