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

Ex Input:
[4931, 5661, 8651, 'l', 'd', '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'K', 2179, 5747, 'C'], [3737, 7345, 3921, 'i', 9199, 3269, '9585', 'r', 'U', 'z', '6511', '9443', '2917', 'A', 'd', 185, 'M']

Ex Output:
9585, r, U, z, 6511, 9443, 2917


Ex Input:
['H', 'z', 'i', 2235, 'F', 7863, 5279, 6871, 6305, 545, 'i', 'x', 1179, 4813, 7929, 9261, 'm', 'w', '8797', '6621', 'o', '9615', 'Q', '3235', '5995', '939', 't', 'T', 'g', 'c', '4047', 'm', 'V', 'P', '8637', 's', 'Z', 'G', 6405, 1707], [9085, 4723, 'q', 'i', 'w', 5997, 'w', 'H', 'N', 'v', 4797, 5633, 7441, 'O', 9121, 'h', 9939, 'w', '8797', '6621', 'o', '9615', 'Q', '3235', '5995', '939', 't', 'T', 'g', 'c', '4047', 'm', 'V', 'P', '8637', 'o', 2775, 5765, 'H', 309, 609, 9481, 'x']

Ex Output:
w, 8797, 6621, o, 9615, Q, 3235, 5995, 939, t, T, g, c, 4047, m, V, P, 8637


Ex Input:
['S', 9665, 1263, 7245, '2019', '619', '2443', '5733', 'Y', '793', '2277', 'n', 'J'], [557, 7159, 'W', 3737, 'e', 415, '2019', '619', '2443', '5733', 'Y', '793', '2277', 'q', 3657]

Ex Output:

2019, 619, 2443, 5733, Y, 793, 2277