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

Input: Consider Input: ['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]

Output: 5747, i, M


Input: Consider Input: [8235, 6785, 'P', 'N', 'y', '5503', '6065', '2039', 'Q', 'o', 'F', 7791, 'R', 'm', 3633], ['s', 863, 'z', 'y', '5503', '6065', '2039', 'Q', 'o', 'o', 6907, 5837, 's', 2553]

Output: y, 5503, 6065, 2039, Q, o


Input: Consider Input: ['e', 's', 669, 'L', 9595, 'Y', 'I', 's', 'I', '7175', '4373', 'G', '3185', '8737', 'y', 'n', 'M', 'q', '4755', '3525', '1259', 'A', 'O', 'Q', 1, 'K', 4785, 5477, 'z', 5789, 'L', 'e', 'A', 5197], [9981, 'U', 563, 'J', 'O', 's', 'k', 7557, 7737, 1729, 'Y', 'I', 's', 'I', '7175', '4373', 'G', '3185', '8737', 'y', 'n', 'M', 'q', '4755', '3525', '1259', 'z', 3455, 'n', 5471, 7257, 6401, 7681, 6041, 7495, 'J', 'Q', 2909]


Output: Y, I, s, I, 7175, 4373, G, 3185, 8737, y, n, M, q, 4755, 3525, 1259