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

Ex Input:
[6971, 'd', 'J', 'p', 'F', 5463, 'F', 'P', 1897, 'J', 'O', 'j', 'H', 'y', '3659', '9455', 'P', '9829', 'm', 'Q', 7829, 'C', 5311], ['E', 'R', 'H', 217, 'J', 'O', 'j', 'H', 'y', '3659', '9455', 'P', '9829', 'm', 'T', 5849, 1449]

Ex Output:
J, O, j, H, y, 3659, 9455, P, 9829, m


Ex Input:
[5189, 6517, 7263, 3907, 'I', 7869, 8561, 'M', 'X', 1055, 'N', 533, 9903, 'p', 5241, 'L', 4649, 'R', 'G', '3873', 'o', '4565', 'I', '9949', 'k', 'H', 'o', 'M', '7819', 'q', '3397', '739', '9863', '4743', 'n', '8999', 'G', '1411', 'L', 't', 'm', 'k', 6041, 'L', 'V', 9697, 7967, 't', 'L', 'i'], [1055, 2831, 3023, 8711, 'E', 6059, 'v', 'E', 'M', 4133, 'Q', 249, 'Q', 5195, 5607, 'G', '3873', 'o', '4565', 'I', '9949', 'k', 'H', 'o', 'M', '7819', 'q', '3397', '739', '9863', '4743', 'n', '8999', 'G', '1411', 'Q', 8961, 5471, 613, 4235, 'g', 'N', 9513, 9767, 'j', 't', 'I']

Ex Output:
G, 3873, o, 4565, I, 9949, k, H, o, M, 7819, q, 3397, 739, 9863, 4743, n, 8999, G, 1411


Ex Input:
['k', 'x', 'T', 3671, 'l', '1495', '7199', '1637', 'p', '4437', 'P', 'y'], ['O', 'j', 3313, 3635, 6607, '1495', '7199', '1637', 'p', '4437', 'H', 'l', 6199, 483]

Ex Output:

1495, 7199, 1637, p, 4437