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

Input: Consider Input: [2799, 'R', 's', '9885', 's', 'c', '7143', 'H', '445', 'F', 9229, 'B', 5169, 'T', 's'], [109, 'u', 'f', 2303, 1495, 5041, '9885', 's', 'c', '7143', 'H', '445', 'v', 7261]

Output: 9885, s, c, 7143, H, 445


Input: Consider Input: [4717, 'J', 'B', 'f', 'a', 9035, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'F', 5099], ['Q', 3557, 'y', 2689, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'k', 8835, 'C', 8979]

Output: 3041, 491, 3395, 3117, 4793, 4305, c


Input: Consider Input: [1845, 8665, 7115, 'G', 'D', 'k', '3173', '2041', 'D', 5927, 8873, 'K'], [7245, 'l', 'G', 'w', 'a', 'G', 'D', 'k', '3173', '2041', 'K', 7301]


Output: G, D, k, 3173, 2041