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

Ex Input:
[7045, 'e', 3545, 6563, '5913', 'X', '5591', 'o', 'T', 'b'], [145, 'm', 'I', 'F', '5913', 'X', '5591', 'o', 'F', 6499, 3777]

Ex Output:
5913, X, 5591, o


Ex Input:
[37, 2553, 'G', 'a', 325, 613, '4953', '1589', 'W', 'A', 'n', '5241', 'r', '1599', 'a', '6129', 'J', 'H', 'F', 'r', 'u', 'q', 7043, 'a', 'n'], [3683, 'D', 'l', 'G', 'T', 'Z', 'i', 9075, 'M', 'Y', 5963, '4953', '1589', 'W', 'A', 'n', '5241', 'r', '1599', 'a', '6129', 'J', 'H', 'F', 'r', 'u', 'C', 'Q', 'W', 2181, 'O', 'Q', 'D', 5703, 3461]

Ex Output:
4953, 1589, W, A, n, 5241, r, 1599, a, 6129, J, H, F, r, u


Ex Input:
[9463, 8661, 51, 'y', 'w', '6415', '6809', 'r', 'o', 'm', '4017', 'Y', 'h', 'B', 'A', '5621', 'G', 'f', 109, 't', 'q', 3023, 'I', 'S', 'V', 'Z', 'g', 221], [587, 7081, 'u', 'y', 'w', '6415', '6809', 'r', 'o', 'm', '4017', 'Y', 'h', 'B', 'A', '5621', 'A', 'g', 4133, 8851, 4439]

Ex Output:

y, w, 6415, 6809, r, o, m, 4017, Y, h, B, A, 5621