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

Ex Input:
['T', 5987, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'n', 5107, 'w', 'u'], [6625, 'm', 8849, 3385, 6853, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'a', 'G', 'G', 'e', 3501]

Ex Output:
3759, O, x, 4311, e, 6841, R, d, y, 2745


Ex Input:
[1379, 'n', 1525, 'Y', 'A', '9043', '2335', '5029', 'f', 'b', '7547', '4275', 'R', 'H', 'd', 8015, 10007, 'R', 'K', 'n', 'o', 'U', 3049], ['k', 379, 'M', 'M', 'a', '9043', '2335', '5029', 'f', 'b', '7547', '4275', 'R', 'H', 'q', 'v', 7549]

Ex Output:
9043, 2335, 5029, f, b, 7547, 4275, R, H


Ex Input:
[3083, 'U', '3609', 'y', 'U', '4891', '3069', '1645', 'r', 2357, 3627, 3581, 9975, 'Z'], [111, 979, '3609', 'y', 'U', '4891', '3069', '1645', 'd', 2699]

Ex Output:

3609, y, U, 4891, 3069, 1645