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

Input: Consider Input: [5599, 'o', 'p', 'T', 'o', 'p', 'B', 'M', '283', 'R', 'a', '9671', '8125', 'D', 'e', 'O', 'O', 3319], ['J', 2811, 7263, 'C', 4889, 477, 'o', 'p', 'B', 'M', '283', 'R', 'a', '9671', '8125', 'F', 3717, 'X', 1407, 2097, 'J', 'N', 'W']

Output: o, p, B, M, 283, R, a, 9671, 8125


Input: Consider Input: ['h', 'L', 2481, 8463, 1309, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'o', 'I', 4133, 't', 'i'], ['P', 5497, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'I', 2251, 'p', 's', 'n', 'k', 8259]

Output: 7587, 521, a, 1617, 5245, 5629, 9977


Input: Consider Input: [3981, 9107, 5763, 6221, '3433', '6637', '5269', '5239', 'o', '3103', 'U', 't', 'h', '4887', 'd', '8559', '6643', 'E', '2177', 'l', 'j', '73', 'R', 'S', 4245, 8053, 'e', 265, 4179, 't', 5609, 'w', 'Q'], [9761, 'P', 'h', 2681, 'C', 1445, 'j', 3569, 7331, 'H', 'v', 8921, 'l', '3433', '6637', '5269', '5239', 'o', '3103', 'U', 't', 'h', '4887', 'd', '8559', '6643', 'E', '2177', 'l', 'j', '73', 'f', 'k', 4231, 'u', 'z', 141, 'Y', 'd', 847]


Output: 3433, 6637, 5269, 5239, o, 3103, U, t, h, 4887, d, 8559, 6643, E, 2177, l, j, 73