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

Input: Consider Input: ['o', 5261, 'R', 8999, 'G', 1965, 3921, 9539, 5343, 'c', 6119, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'S', 6387, 'u'], ['B', 'X', 319, 1715, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'T', 'Q', 3169, 'x', 'L', 'Q', 1161, 5639]

Output: 4617, 7787, P, 295, U, 1429, 7667, G, 8607, R, 7375, E, R

Input: Consider Input: ['L', 'V', 5597, 1661, 'x', 'M', 3901, 'Y', 7525, 'r', 'P', 3031, 'b', 'y', '951', 'E', 'Q', 'n', '5797', '6551', '7545', '523', '6555', '3247', '1875', '5', '2955', 'y', 9635, 9141, 't', 7363, 1359, 'H', 5619], [6813, 7119, 'b', 'y', '951', 'E', 'Q', 'n', '5797', '6551', '7545', '523', '6555', '3247', '1875', '5', '2955', 'w', 2701, 'f', 9769, 6265, 6111, 'n', 5757, 915, 1583, 'N']

Output: b, y, 951, E, Q, n, 5797, 6551, 7545, 523, 6555, 3247, 1875, 5, 2955

Input: Consider Input: ['q', 1429, 7637, 8969, 'n', 'R', '7139', 'o', 'o', '1737', 'd', '9759', '9087', 'p', 'P', 'Z', 'O', '7543', '7557', 'B', 'g', 'n', '4551', 'Y', 'D', '5205', '6697', 'U', 'u', '6489', 'P', 3733, 'A'], ['k', 2063, 'C', 5397, 'l', 'W', 'j', 915, 'k', 4753, 4751, 'J', 3115, 4361, '7139', 'o', 'o', '1737', 'd', '9759', '9087', 'p', 'P', 'Z', 'O', '7543', '7557', 'B', 'g', 'n', '4551', 'Y', 'D', '5205', '6697', 'U', 'u', '6489', 'T', 'c', 3893, 6057, 5551, 'H', 9767, 'q', 6787, 'z', 593, 1667, 'j', 'o', 's', 7243, 949, 'Q', 2285, 9215, 'I', 1661]
Output: 7139, o, o, 1737, d, 9759, 9087, p, P, Z, O, 7543, 7557, B, g, n, 4551, Y, D, 5205, 6697, U, u, 6489