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

Ex Input:
['l', 8391, 7237, 'j', 5061, '1867', 'R', '5053', 'H', 'R', 'd', 'K', 8013, 'H'], ['H', 7623, '1867', 'R', '5053', 'H', 'R', 'd', 'e', 3679, 'd', 'M', 'j']

Ex Output:
1867, R, 5053, H, R, d


Ex Input:
[2255, 4205, 'U', '7567', 'k', 5167], ['Q', 9439, 'U', '7567', 'H', 1307]

Ex Output:
U, 7567


Ex Input:
['E', 'U', '1563', 'r', 'w', '23', 'S', 2023, 'G'], ['B', 3759, 'z', 'G', '1563', 'r', 'w', '23', 'K', 6433]

Ex Output:

1563, r, w, 23