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

Ex Input:
['R', 'Q', 'Q', 'e', 'C', 'U', 'T', '7509', '8471', 'S', 407, 793], ['G', 'D', 'C', 'U', 'T', '7509', '8471', 'l', 'r', 7861, 6959, 1617]

Ex Output:
C, U, T, 7509, 8471


Ex Input:
['n', 'E', '2891', '7537', 'Q', 'J'], [2247, 10017, '2891', '7537', 'e', 1001]

Ex Output:
2891, 7537


Ex Input:
[4571, 'J', 711, 'v', '9873', '6877', '7683', '7285', '5235', 'h', 9177, 'E', 's', 'B'], [3455, 5349, 'F', 'k', 'X', '9873', '6877', '7683', '7285', '5235', 'j', 4885, 'N', 'e', 'c']

Ex Output:

9873, 6877, 7683, 7285, 5235