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

Input: Consider Input: [8555, 1665, 'm', 5361, 2523, 'L', 'T', 'P', 'B', 'q', 'W', '2357', '6563', 'd', '8239', 'p', 'c', 'e', 'd', 'S', 'k', 'H', 'U', 'g', 'j', 'r', 't', 'F', 8547, 1815, 1599, 4083, 'm', 9959, 'R', 'L'], [7829, 'N', 1893, 4933, 9825, 9043, 'B', 'q', 'W', '2357', '6563', 'd', '8239', 'p', 'c', 'e', 'd', 'S', 'k', 'H', 'U', 'g', 'j', 'r', 'C', 'p', 2443, 'Q', 'H', 155, 277, 7833, 8183]

Output: B, q, W, 2357, 6563, d, 8239, p, c, e, d, S, k, H, U, g, j, r


Input: Consider Input: ['U', 637, 'o', '3327', 'A', '7495', 'i', 'b', '2067', '5555', '3619', '1697', 't', 3715, 'Q'], ['u', 921, 4467, 2095, 345, 'b', '3327', 'A', '7495', 'i', 'b', '2067', '5555', '3619', '1697', 'E', 7935, 'B', 6341, 'N', 'V', 7655]

Output: 3327, A, 7495, i, b, 2067, 5555, 3619, 1697


Input: Consider Input: [7297, 'E', 'G', 273, 1101, 'B', '493', '631', 'q', '5583', '4247', 'm', '4859', 'c', '4251', 'I', '7517', '7235', 'h', '5865', 'o', 2641, 1509, 5707, 4807, 5987, 'C', 'k', 8291, 'x', 'I', 1413, 4895, 8641], ['x', 237, '493', '631', 'q', '5583', '4247', 'm', '4859', 'c', '4251', 'I', '7517', '7235', 'h', '5865', 'C', 2549, 6513, 9129, 'G', 'F', 't', 3753]


Output: 493, 631, q, 5583, 4247, m, 4859, c, 4251, I, 7517, 7235, h, 5865