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

Example 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']
Example Output: 1845, a, 715, O, 3649, w, 8821, 2545, 1011, u, 895, 4133, n, 3759, w, X

Example 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]
Example Output: 9807, 5503, 4787, 8401, 1975, c, 3357, O, 2117, V, W, 223, n, 7837, J, 7137, 4965, O, 9937

Example Input: [2565, 'A', 'e', '6769', 'j', 1479], ['I', 'F', 'e', '6769', 'J', 1621]
Example Output:
e, 6769