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

Ex Input:
[3535, 10023, 'g', 'B', 'E', 'p', 'K', 'y', 1187, 5353, 8779], [1169, 981, 'B', 'E', 'p', 'K', 'D', 'h', 4145, 'h']

Ex Output:
B, E, p, K


Ex Input:
[1043, 4021, 'b', 'e', '5055', 'N', 7081], ['o', 'S', 'b', 'e', '5055', 'q', 8711, 9911]

Ex Output:
b, e, 5055


Ex Input:
['B', 5209, 3909, 'U', '349', '1837', '263', '1411', 'C', 'C', 'b', '9005', '4293', '677', 'S', '6373', 'Q', '9689', 'r', 'd', 'W', 9655, 4973], ['h', 'x', 5547, 8317, 6629, 'B', 8439, 'U', '349', '1837', '263', '1411', 'C', 'C', 'b', '9005', '4293', '677', 'S', '6373', 'Q', '9689', 'z', 4107, 555, 'd', 7953, 'u']

Ex Output:

U, 349, 1837, 263, 1411, C, C, b, 9005, 4293, 677, S, 6373, Q, 9689