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

Ex Input:
['r', 'X', 7017, 'D', 2235, 'p', 'i', 3287, 'z', '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'W', 4175, 5695, 'r', 9809, 8187, 'G'], [8989, 2959, 7907, 'F', 2481, 'Q', 9095, '9245', 'S', '8055', '1843', '147', '4353', '9543', '9247', '6361', '609', 'v', 'z', '4349', 'd', '6611', '5101', 'G', 'g', 5163, 'B', 2487, 'r', 'j', 'l', 293, 'Z']

Ex Output:
9245, S, 8055, 1843, 147, 4353, 9543, 9247, 6361, 609, v, z, 4349, d, 6611, 5101, G


Ex Input:
['Y', 'Z', 'm', 'S', '3631', 'v', 'x', 5851, 615, 'm'], ['D', 'D', 'm', 'S', '3631', 'v', 'O', 'D']

Ex Output:
m, S, 3631, v


Ex Input:
[5985, 'b', 'V', 'v', 2499, 9801, 'I', 'k', 'B', 2591, 'z', 'm', 3021, 5881, 'D', 'A', 8993, 'j', '7515', '4345', 'J', 'E', 'W', 'd', 'h', 'M', '3321', '227', '291', '6659', 'k', '7405', '9783', 'l', 'a', '5963', 'H', '8981', '2421', 'c', 'D', '2827', 'H', 'F'], ['f', 'K', 'D', 'l', 'M', 'U', 'o', 8803, 1093, 'C', 'o', 4865, 'W', 'n', 6823, 3673, 4251, 1201, 559, 'p', '7515', '4345', 'J', 'E', 'W', 'd', 'h', 'M', '3321', '227', '291', '6659', 'k', '7405', '9783', 'l', 'a', '5963', 'H', '8981', '2421', 'c', 'D', '2827', 'g', 'm', 'G', 9341, 'X', 9053, 399, 8183, 'X', 'H', 'C', 'i', 8101, 4913, 7047, 2647, 3177, 1021, 2529, 'd']

Ex Output:

7515, 4345, J, E, W, d, h, M, 3321, 227, 291, 6659, k, 7405, 9783, l, a, 5963, H, 8981, 2421, c, D, 2827