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

Ex Input:
[2449, 'h', 'F', 2217, 'G', 2655, 'k', 'Y', '8427', '2933', 'x', '2689', '9305', 'L', '9263', '2671', 'q', 9553, 4023, 127], [849, 7901, 'd', '8427', '2933', 'x', '2689', '9305', 'L', '9263', '2671', 'r', 'A', 'F']

Ex Output:
8427, 2933, x, 2689, 9305, L, 9263, 2671


Ex Input:
[3453, 883, 'a', 'C', 7891, 'T', 8245, 9759, 'J', 'Z', 6515, 'B', 'j', 3353, 859, 2123, 3289, 'I', 'e', 'p', 4473, 'A', 7815, 4401, 'Z', 2071, 'm', 'C', '4283', '8455', '697', '1653', '6739', '7729', 'K', 'a', 'v', 'c', '69', '7427', '4721', '7015', '497', '7697', '7533', 'l', 'l', 'U', '6481', 'm', '5107', 'v', 'M', 'u', '3649', 'O', 5601, 5705, 'B', 2271, 7875, 'E', 4389, 'U', 9283, 'v', 2119, 457, 'W', 'd', 'C', 'i', 3311, 'X'], ['u', 'z', 'I', 'x', 'l', 'm', 'C', '4283', '8455', '697', '1653', '6739', '7729', 'K', 'a', 'v', 'c', '69', '7427', '4721', '7015', '497', '7697', '7533', 'l', 'l', 'U', '6481', 'm', '5107', 'v', 'M', 'u', '3649', 'J', 9139, 9981, 'O', 5677, 9201, 3941, 'r', 'w', 5597, 9451, 2807, 3577]

Ex Output:
m, C, 4283, 8455, 697, 1653, 6739, 7729, K, a, v, c, 69, 7427, 4721, 7015, 497, 7697, 7533, l, l, U, 6481, m, 5107, v, M, u, 3649


Ex Input:
['f', 8547, 4157, 'W', '7343', '5043', '1651', '9735', 'r', 'g'], [2251, 2929, 'K', 'G', '7343', '5043', '1651', '9735', 'J', 8323, 'N']

Ex Output:

7343, 5043, 1651, 9735