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

Input: Consider Input: ['K', 9673, 1909, 4297, 4479, 6817, 4899, 'C', 6959, 'V', '9807', '5503', '4787', '8401', '1975', 'c', '3357', 'O', '2117', 'V', 'W', '223', 'n', '7837', 'J', '7137', '4965', 'O', '9937', 'a', 'M', 'n', 6241, 'm'], ['x', 2703, 'G', 'g', 6139, 369, 'M', 2263, 1539, 8497, '9807', '5503', '4787', '8401', '1975', 'c', '3357', 'O', '2117', 'V', 'W', '223', 'n', '7837', 'J', '7137', '4965', 'O', '9937', 'X', 171, 2305, 2887, 'x', 'M', 557, 9003, 'H', 'V', 'B', 7409]

Output: 9807, 5503, 4787, 8401, 1975, c, 3357, O, 2117, V, W, 223, n, 7837, J, 7137, 4965, O, 9937


Input: Consider Input: [8827, 'K', 7387, 7215, 'Y', '4759', 'V', 'l', '5621', '391', 'V', '6741', 'O', '3153', '4133', '2785', '8699', '9719', '1445', '487', 'm', '3969', 'u', 'u', '8779', 'y', 'R', 7083, 'U', 3361, 'u', 'b', 'M', 5833, 'D', 7509, 'D'], ['Y', 4615, 'l', 2547, '4759', 'V', 'l', '5621', '391', 'V', '6741', 'O', '3153', '4133', '2785', '8699', '9719', '1445', '487', 'm', '3969', 'u', 'u', '8779', 'b', 'W', 3225, 291, 2681, 'Z', 'k', 8059, 'A', 7261, 4877, 2019, 'g', 4621, 4541, 3343, 997, 6091, 5577, 'q']

Output: 4759, V, l, 5621, 391, V, 6741, O, 3153, 4133, 2785, 8699, 9719, 1445, 487, m, 3969, u, u, 8779


Input: Consider Input: [4849, 'S', 'F', 'B', 7793, 'm', 141, 'g', 5279, 6417, 4409, 'A', 783, 981, 5577, 'Z', '8237', '8199', '5323', 'v', 'z', 'I', '9039', 'w', '7445', 'Q', '4611', '4959', '2309', '1535', '1681', '9207', '4951', 'd', '9427', 'A', 9121, 7329, 9813, 'A', 4103, 'j', 2665, 'X', 'r', 'v', 'l', 5383], ['p', 5749, 3943, 8691, 3471, 'Z', '8237', '8199', '5323', 'v', 'z', 'I', '9039', 'w', '7445', 'Q', '4611', '4959', '2309', '1535', '1681', '9207', '4951', 'd', '9427', 'n', 'B', 'a', 8375, 2485, 'X', 9247, 'L']


Output: Z, 8237, 8199, 5323, v, z, I, 9039, w, 7445, Q, 4611, 4959, 2309, 1535, 1681, 9207, 4951, d, 9427