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', 3897, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'P', 'C', 'z', 5141, 1751, 6731, 'r'], ['B', 8071, 703, 'G', 885, 'Z', 2391, 1749, 4177, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'D', 8751, 'y', 2941]

Output: U, a, 455, 6499, 8975, 9003, O, j, T


Input: Consider Input: ['p', 'C', 6777, 'P', 'd', 4619, 'l', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'U', 'C', 'G', 'm'], ['U', 5295, 'O', 'F', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'W', 'C', 'I', 'K', 5891]

Output: 4333, 9491, V, 5745, P, 9255, 9439, 8461, D, L, w, R


Input: Consider Input: [6357, 5591, 8245, '5305', 'W', '1719', '6671', 'S', 'o', 'g', '6925', '8387', 'M', '9353', '4727', '1043', 'W', 'H', 's', 'L', 2189, 'w', 'P', 'o', 'G', 9459, 'l', 'R', 'F'], ['z', 'v', 'G', 'K', 6317, '5305', 'W', '1719', '6671', 'S', 'o', 'g', '6925', '8387', 'M', '9353', '4727', '1043', 'W', 'g', 3583, 'u', 'r', 'X', 4789, 'U', 'P']


Output: 5305, W, 1719, 6671, S, o, g, 6925, 8387, M, 9353, 4727, 1043, W