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

Example Input: ['S', 'o', 9247, 'W', 'G', 5923, 4791, '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 's', 'T', 5829, 'p'], ['K', 'U', 'H', 8611, 1005, 'I', '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 'C', 9577, 8279, 2247, 'x', 4917, 'H']
Example Output: 8083, 3207, 9137, 9359, 9297, 9667, 75, h, 9671

Example Input: ['g', 9605, '2057', '3119', 'R', 'X', 'p', '4501', 'h', '347', '7435', 'J', '4601', '4601', 'E', '8787', 'I', 'i', 3357, 'i', 6367, 't', 2131, 'J', 'W', 501, 679, 'o', 8079, 'O', 'u'], [761, 8395, '2057', '3119', 'R', 'X', 'p', '4501', 'h', '347', '7435', 'J', '4601', '4601', 'E', '8787', 'I', 'K', 'n', 9433]
Example Output: 2057, 3119, R, X, p, 4501, h, 347, 7435, J, 4601, 4601, E, 8787, I

Example Input: [373, 2809, 'g', 4205, 'T', 'X', '2797', 'T', 'B', '8025', '3657', 'U', 'x', 'J', 'u', 6679, 'Z'], [9593, 'y', 'i', 'q', 8223, 'k', 'z', '2797', 'T', 'B', '8025', '3657', 'U', 'x', 'M', 'X', 'P', 'f']
Example Output:
2797, T, B, 8025, 3657, U, x