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

Ex Input:
['E', 'P', 'Z', '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'x', 9461, 2587], [9027, 289, 2515, 'k', 'N', 'i', 9689, '8337', 'L', '4245', 'M', 'M', 'H', '4531', 'B', 'p', '6961', 'r', 'x', 737, 'a', 'w', 'K', 'S']

Ex Output:
8337, L, 4245, M, M, H, 4531, B, p, 6961


Ex Input:
['c', 'G', 8225, 6329, '6291', '5279', 'n', 'A', 'J', 'n', 5221, 'r', 't'], ['k', 'M', 'Z', 'B', 4003, '6291', '5279', 'n', 'A', 'J', 'g', 'm']

Ex Output:
6291, 5279, n, A, J


Ex Input:
[7905, 'f', 3365, 's', 9051, 'p', 'i', 1705, 9203, 'a', 'N', '3351', 'S', 'H', '7829', 'L', '8483', 'M', 'n', 'l', 'S', '6343', 'G', 'd', 3323, 'O', 'p', 925, 5077, 'J'], ['w', 2561, 2283, 'A', 'w', '3351', 'S', 'H', '7829', 'L', '8483', 'M', 'n', 'l', 'S', '6343', 'G', 'h', 7255, 'n', 'X', 8423, 'v', 2571, 'l', 'e']

Ex Output:

3351, S, H, 7829, L, 8483, M, n, l, S, 6343, G