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

Input: Consider Input: ['M', 'm', 8571, 'J', 7297, 3761, 35, 8987, 1723, 1719, 1591, 'Z', 3877, '6959', '3717', 'y', '4219', '993', 'E', '8809', 'A', 'q', 't', '5583', '6643', 'L', '5605', 'S', 'o', '3071', '1365', 'X', 2021, 'N', 3259, 'X', 'h', 'v', 7289, 9767, 2785, 7275], ['h', 'w', 'c', 'p', 'y', 'y', 'h', 'X', '6959', '3717', 'y', '4219', '993', 'E', '8809', 'A', 'q', 't', '5583', '6643', 'L', '5605', 'S', 'o', '3071', '1365', 'P', 'k', 'I', 7703]

Output: 6959, 3717, y, 4219, 993, E, 8809, A, q, t, 5583, 6643, L, 5605, S, o, 3071, 1365


Input: Consider Input: [6971, 'd', 'J', 'p', 'F', 5463, 'F', 'P', 1897, 'J', 'O', 'j', 'H', 'y', '3659', '9455', 'P', '9829', 'm', 'Q', 7829, 'C', 5311], ['E', 'R', 'H', 217, 'J', 'O', 'j', 'H', 'y', '3659', '9455', 'P', '9829', 'm', 'T', 5849, 1449]

Output: J, O, j, H, y, 3659, 9455, P, 9829, m


Input: Consider Input: ['X', 4099, 'h', 'L', 8081, 'o', 'O', 1659, 'm', 'A', '3893', 'H', '9803', 'n', 'Z', '5029', '6159', '2373', 'd', 'Z', 'X', '7969', 'F', 'T', 'l', 1119, 4585, 3747, 8983, 149, 'T', 6559, 'r', 'h', 'e', 2019, 89, 3627], [7879, 'f', 'T', 1705, 'q', 9785, '3893', 'H', '9803', 'n', 'Z', '5029', '6159', '2373', 'd', 'Z', 'X', '7969', 'F', 'T', 'X', 9045, 'U', 'Q', 'j', 'E', 8915, 6159, 'P', 'y', 9315]


Output: 3893, H, 9803, n, Z, 5029, 6159, 2373, d, Z, X, 7969, F, T


