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

Ex Input:
[1065, 2741, 'w', 'B', 'X', '5865', 's', '2579', '3679', 'K', 4415, 5237], [9019, 4795, 8363, 1935, 9883, 'X', '5865', 's', '2579', '3679', 'y', 4605, 8603, 1243, 9199]

Ex Output:
X, 5865, s, 2579, 3679


Ex Input:
['b', 'L', 'v', 7993, 2017, 929, '4549', '3397', 'O', 'M', 'F', '6233', '6011', 'Z', '8625', 'm', '1699', '7663', '2439', 'p', 'a', 'C', '9955', 'O', '1085', '2845', '2029', '391', 'O', '5349', 'L', '2971', '631', 'a', 3379, 'W', 397, 8293, 5007], ['j', 'O', 3563, 'V', 5991, 'z', 'd', 513, '4549', '3397', 'O', 'M', 'F', '6233', '6011', 'Z', '8625', 'm', '1699', '7663', '2439', 'p', 'a', 'C', '9955', 'O', '1085', '2845', '2029', '391', 'O', '5349', 'L', '2971', '631', 'm', 2835, 5795, 3245, 'A', 1761]

Ex Output:
4549, 3397, O, M, F, 6233, 6011, Z, 8625, m, 1699, 7663, 2439, p, a, C, 9955, O, 1085, 2845, 2029, 391, O, 5349, L, 2971, 631


Ex Input:
['H', 8311, '3801', 'O', 'M', 'm', 'T', '8609', 'L', 'n', 'X', 'h', 'c', 9197, 3351, 7809, 5787, 6187], ['q', 'I', 917, 'P', '3801', 'O', 'M', 'm', 'T', '8609', 'L', 'n', 'l', 3885, 7761, 'F', 'C', 3789, 'e']

Ex Output:

3801, O, M, m, T, 8609, L, n