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

Input: Consider Input: [9673, 'V', 'q', 8183, 4703, '9707', 'Y', '7685', 'o', 'b', 'a', 'g', 'R', '551', 'W', 'Q', 1263, 'd', 'S'], [3777, 'a', 't', 'b', 'P', 'L', 3443, 6611, 1651, 'G', '9707', 'Y', '7685', 'o', 'b', 'a', 'g', 'R', '551', 'W', 'E', 'y', 'U']

Output: 9707, Y, 7685, o, b, a, g, R, 551, W


Input: Consider Input: ['L', 5499, 'z', 'J', 'I', 't', 6291], [337, 5087, 'z', 'J', 'I', 'p', 'm']

Output: z, J, I


Input: Consider Input: [8145, 'd', 'x', 'I', 1179, 'g', 'v', 4161, 7121, 'X', 4601, 9027, 'v', 'H', 'm', 7147, 8871, 7783, '389', 'V', '5267', '9853', '5613', 'O', '7953', 'c', '4839', '2635', 'G', 'a', 'B', '3591', '9883', 'P', '6915', '4687', 'V', 7225, 'Z', 'Z', 303, 9209, 1885, 6507, 'z', 6551, 'k', 'X', 'Q', 3153, 'l', 'Y', 10009, 9135], ['l', 3823, 849, 'I', 'p', 9047, 8565, 1593, 'W', 3175, 'j', 3323, 'X', 'F', 3749, 'i', '389', 'V', '5267', '9853', '5613', 'O', '7953', 'c', '4839', '2635', 'G', 'a', 'B', '3591', '9883', 'P', '6915', '4687', 'X', 1705, 'j', 'V', 'd', 8077, 6057, 9999, 's']


Output: 389, V, 5267, 9853, 5613, O, 7953, c, 4839, 2635, G, a, B, 3591, 9883, P, 6915, 4687