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

Ex Input:
['X', 'U', 'Z', 9489, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'U', 'p', 'R', 609, 4535, 4269, 8941, 'I', 2091, 'Q'], [3721, 8573, 8821, 6095, 1215, 1195, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'L', 'm', 'q', 'j', 697, 3367, 'R']

Ex Output:
4623, M, d, 5977, 7669, 8583, 2455, D, j, c


Ex Input:
['p', 'C', 6777, 'P', 'd', 4619, 'l', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'U', 'C', 'G', 'm'], ['U', 5295, 'O', 'F', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'W', 'C', 'I', 'K', 5891]

Ex Output:
4333, 9491, V, 5745, P, 9255, 9439, 8461, D, L, w, R


Ex Input:
[7987, 7761, 837, 'N', 5307, 'm', 'H', 'a', 6011, 'p', 1261, 'n', 'j', 2741, 'T', 'V', 7247, 'I', 6487, 'X', 3735, 2641, 6011, 5017, 'g', 't', '4355', '5389', 'j', 'Q', '9471', '8927', '5121', 'h', '8351', '279', 's', 'x', '3639', 'K', 'h', '5871', '3719', 'Z', 'o', '6835', 'P', '8211', 'x', '2289', '6469', 'Z', 8599, 3573, 2533, 993, 6211, 5357, 'G', 'p', 'l', 925, 4011, 'Y'], [2521, 'K', 'K', 3697, 8391, 3329, 9555, 4121, 6765, 9791, 9973, 'd', 1039, 6223, 9409, 6551, 'b', 7819, 'R', 1747, 591, 'c', 'z', 4793, 't', '4355', '5389', 'j', 'Q', '9471', '8927', '5121', 'h', '8351', '279', 's', 'x', '3639', 'K', 'h', '5871', '3719', 'Z', 'o', '6835', 'P', '8211', 'x', '2289', '6469', 'S', 'Z', 'g', 'u', 8147, 'Y', 'N', 8969, 589, 'W', 'X', 'v', 8031, 'Z', 9917, 9513, 3131, 6595, 'M', 649, 1001, 'L', 'e', 'P', 8181, 567]

Ex Output:

t, 4355, 5389, j, Q, 9471, 8927, 5121, h, 8351, 279, s, x, 3639, K, h, 5871, 3719, Z, o, 6835, P, 8211, x, 2289, 6469