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

Ex Input:
[4931, 5661, 8651, 'l', 'd', '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'K', 2179, 5747, 'C'], [3737, 7345, 3921, 'i', 9199, 3269, '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'A', 'd', 185, 'M']

Ex Output:
9585, r, U, z, 6511, 9443, 2917


Ex Input:
['r', 7309, 'a', 5957, 2551, 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'a', 'M', 'h', 4163, 'n'], ['q', 4457, 'D', 2623, 't', 'F', 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'u', 2719, 'G']

Ex Output:
c, 4533, L, 9417, m, 7989, 4409


Ex Input:
['D', 591, 'K', 'p', 'R', 'l', 4833, 't', 'P', 4563, 6455, 'Y', '5407', '8247', 'U', '4795', 'G', 'L', '6713', 'K', 'd', '4161', 'l', 'r', '2093', 'J', '9747', 'F', '5623', 'Y', 'm', 'f', 'S', 6629, 'Z', 'Q', 2281, 'X', 'R', 3237, 2169, 6961, 'a', 865], [579, 'Z', 'D', 6053, 2599, 6415, 7811, 'o', 'E', 4465, 365, '5407', '8247', 'U', '4795', 'G', 'L', '6713', 'K', 'd', '4161', 'l', 'r', '2093', 'J', '9747', 'F', '5623', 'a', 'v', 8591, 'X', 'w', 4361, 'F', 1737, 9319, 4887, 'E', 'K', 'A', 9241, 7689, 3869]

Ex Output:

5407, 8247, U, 4795, G, L, 6713, K, d, 4161, l, r, 2093, J, 9747, F, 5623