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

Ex Input:
['h', 'l', 2659, 5135, 4075, 'B', 'Z', 7075, '8385', 'I', '5937', 'N', 'H', '7143', '9643', '7171', 'z', 'c', 'A', '2163', 'm', 5383, 'S', 8583, 3589, 'S'], [5819, 317, 1243, 6949, 3195, 'A', 'p', 'F', 'Z', 4825, 'U', '8385', 'I', '5937', 'N', 'H', '7143', '9643', '7171', 'z', 'c', 'A', '2163', 'Y', 'r', 7985, 'T', 'F', 3637, 'D', 2203, 6855, 'W', 'Z', 4121]

Ex Output:
8385, I, 5937, N, H, 7143, 9643, 7171, z, c, A, 2163


Ex Input:
['v', 1629, 't', 'y', 'R', 'k', 10021, 7155, '7241', '8007', 'N', '4295', 'O', '6233', '6893', '3293', 'J', '789', '85', '2423', 'o', 3491, 'z', 'i', 6959, 865], ['Q', 5541, 6301, '7241', '8007', 'N', '4295', 'O', '6233', '6893', '3293', 'J', '789', '85', '2423', 'D', 3297, 8731, 8807, 99, 'h', 3177, 2689, 'H', 'u', 'S', 833]

Ex Output:
7241, 8007, N, 4295, O, 6233, 6893, 3293, J, 789, 85, 2423


Ex Input:
['W', 'N', 5007, 'x', '6819', '5579', 'l', 'z', 'd', 'c', 2657, 'y'], [4057, 6267, 'r', '6819', '5579', 'l', 'z', 'Y', 821]

Ex Output:

6819, 5579, l, z