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', 'i', 5729, 'G', 8651, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'R', 'A', 5949, 8347, 9169, 'N', 9753, 4353, 9447, 5747, 4347, 'f', 8247, 'D', 'y'], ['b', 'd', 237, 'y', 9735, 'M', 'j', 'f', 9789, 'x', 4217, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'E', 'e', 4021, 7065, 1651, 'n']

Output: 1845, a, 715, O, 3649, w, 8821, 2545, 1011, u, 895, 4133, n, 3759, w, X


Input: Consider Input: [1373, 'R', 'U', 5661, 'g', 'q', 'e', 'v', 'E', 'Q', 'J', '8395', 'o', 4093], ['K', 4843, 'N', 'e', 'v', 'E', 'Q', 'J', '8395', 'V', 3155, 'V', 'H', 'X', 'C']

Output: e, v, E, Q, J, 8395


Input: Consider Input: [929, 3645, 6471, 3345, 3615, 2329, 'O', 'x', 'Y', 'e', 'D', 'I', 'q', '2509', '2625', '5183', 'q', 'V', 'm', '1463', 'k', 'X', 'I', '7823', 'l', '8299', '3543', 'Y', '1121', 'Z', 'z', 'y'], [187, 2115, 'a', 's', 6817, 3481, 'K', 'p', 6493, 8125, '2509', '2625', '5183', 'q', 'V', 'm', '1463', 'k', 'X', 'I', '7823', 'l', '8299', '3543', 'Y', '1121', 'Z', 'd', 6865, 795, 'm', 4423, 3965, 'Z', 'A']


Output: 2509, 2625, 5183, q, V, m, 1463, k, X, I, 7823, l, 8299, 3543, Y, 1121, Z