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

Ex Input:
['N', 7229, '4831', 'P', 'E', 7925], [3857, 'C', '4831', 'P', 'g', 'p']

Ex Output:
4831, P


Ex Input:
['J', 8283, 'c', 1349, 'Z', 5795, 3153, 'w', 3769, 'M', '5425', 'g', '749', '2655', 'L', '5235', '7797', 'q', '8589', 'V', '4057', 'Q', 'y', 'P', 'W', '1223', 'V', '6029', 'P', 'x', 'v', '7111', 'x', '511', 's', 'N', 8363, 4645, 8599, 'B', 5111, 'k', 3627, 3245, 'e', 'h', 'X', 'U', 437, 4871, 3567, 8775, 7393, 2135, 4321, 1223], ['y', 'e', 4857, 'U', 4951, 6477, 6435, '5425', 'g', '749', '2655', 'L', '5235', '7797', 'q', '8589', 'V', '4057', 'Q', 'y', 'P', 'W', '1223', 'V', '6029', 'P', 'x', 'v', '7111', 'x', '511', 'c', 8651, 2433, 219, 'E', 9299, 'R', 'C', 'B', 'n', 'I', 8513, 4973, 3979, 'R', 'g', 'C', 'f', 8713, 3227, 4085, 1055, 'Z']

Ex Output:
5425, g, 749, 2655, L, 5235, 7797, q, 8589, V, 4057, Q, y, P, W, 1223, V, 6029, P, x, v, 7111, x, 511


Ex Input:
['S', 'O', 5503, 2819, 295, 3343, 'B', 8135, 'c', 'q', 6357, 'x', 'n', 'c', 1743, '361', 'A', 'z', '3897', '207', '547', 'c', '2621', '1199', '663', '8223', 'x', 'P', '4587', 'N', 'v', 'v', 'q', 'I', 8447, 'a', 9679, 'R', 'K', 4779, 'B', 2559, 'a', 'Z', 6809, 2393, 7039, 'R'], ['r', 9231, 2235, 1453, 'q', 1511, 'e', 'z', 'a', 'A', 'F', 9853, 'G', '361', 'A', 'z', '3897', '207', '547', 'c', '2621', '1199', '663', '8223', 'x', 'P', '4587', 'N', 'v', 'v', 'U', 'r', 6159, 'f', 'J', 'Q', 'm', 3363]

Ex Output:

361, A, z, 3897, 207, 547, c, 2621, 1199, 663, 8223, x, P, 4587, N, v, v