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

Ex Input:
[7975, 4703, 'c', '8363', '1673', 'U', 'w', 6977], [3235, 'G', 'c', '8363', '1673', 'N', 'p']

Ex Output:
c, 8363, 1673


Ex Input:
['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]

Ex Output:
h, 1181, 1631, 2605, 587, 1477, 2707, R, O


Ex Input:
[3249, 4387, '5099', 'p', 'w', 9875], [211, 'a', '5099', 'p', 'y', 7399]

Ex Output:

5099, p