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

Ex Input:
[9875, 'g', 8729, 'h', 'F', 'v', 'v', 8307, 6379, 3165, 7055, 'f', 'p', 3707, 'P', 6305, 'h', '9891', '2783', 'D', '7567', '95', 'T', 'U', '2035', 'W', 'C', 'B', '9943', 'B', '9033', '6511', 'e', '2623', 'O', 'Z', 'k', 7761], [9061, 1241, 'd', 3917, 'm', 9457, 'n', 1493, 725, 'O', 'h', '9891', '2783', 'D', '7567', '95', 'T', 'U', '2035', 'W', 'C', 'B', '9943', 'B', '9033', '6511', 'e', '2623', 'O', 'Z', 'o', 'J', 'c', 6919, 'O', 'O', 8809, 'J', 'v', 'O', 4633, 941, 'z', 6667, 'X', 'C', 'd', 5189]

Ex Output:
h, 9891, 2783, D, 7567, 95, T, U, 2035, W, C, B, 9943, B, 9033, 6511, e, 2623, O, Z


Ex Input:
['J', 'A', 7687, 281, 'v', 'P', 'i', 7785, 'J', 'Y', 3523, '355', '7389', 'Q', '4119', 'I', 'r', '6615', '8467', 'C', '9539', '4047', 'F', 'B', '2161', 'm', 'W', 'C', 'O', '7731', '3331', 'i', 267, 'p', 4649, 'n', 'H', 'y', 2593, 4947, 3199, 7407, 8623, 'S'], ['T', 9895, 1551, 'O', 5617, 'p', '355', '7389', 'Q', '4119', 'I', 'r', '6615', '8467', 'C', '9539', '4047', 'F', 'B', '2161', 'm', 'W', 'C', 'O', '7731', '3331', 'S', 'C', 2099, 6507, 489, 9845, 6641, 2521]

Ex Output:
355, 7389, Q, 4119, I, r, 6615, 8467, C, 9539, 4047, F, B, 2161, m, W, C, O, 7731, 3331


Ex Input:
['A', 'C', 3897, 4043, 7209, 1975, 'W', 'b', 'k', 7597, 7313, 8861, 6655, 'd', 'd', 'q', 'm', 'A', '935', '4717', 't', 'c', 'd', '1869', '8617', 'z', '7453', 'Z', 'n', '8879', 'l', '2057', '8107', 'q', 'h', '8335', '8829', '4251', '6035', 'G', '8093', 'H', '5213', 't', 8847, 1107, 'N', 9073, 'G', 7245, 'H', 'L', 'z', 'B', 9129, 'D', 9453, 'J', 8715, 'f', 'T', 3989, 'z', 5771, 3103, 8515], [5665, 'S', 759, 6469, 8057, 'v', 'm', 'A', '935', '4717', 't', 'c', 'd', '1869', '8617', 'z', '7453', 'Z', 'n', '8879', 'l', '2057', '8107', 'q', 'h', '8335', '8829', '4251', '6035', 'G', '8093', 'H', '5213', 'i', 'd', 4583, 'T']

Ex Output:

m, A, 935, 4717, t, c, d, 1869, 8617, z, 7453, Z, n, 8879, l, 2057, 8107, q, h, 8335, 8829, 4251, 6035, G, 8093, H, 5213