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

Ex Input:
['S', 'o', 9247, 'W', 'G', 5923, 4791, '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 's', 'T', 5829, 'p'], ['K', 'U', 'H', 8611, 1005, 'I', '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 'C', 9577, 8279, 2247, 'x', 4917, 'H']

Ex Output:
8083, 3207, 9137, 9359, 9297, 9667, 75, h, 9671


Ex Input:
[6475, 9471, 3883, 'k', 3715, 'h', '4275', '3019', '9711', 'd', '7655', 'j', 'Y', 'H', 'f', '3135', '9479', 'K', 'E', 'J', '9713', '6953', 's', 'g', 'G', 9013, 1643, 619, 'b', 'k', 'z', 'd', 'w', 'E', 7989, 'o', 'C', 'Y'], [3391, 's', 5761, 9389, 6131, 'a', 1723, 451, 4781, 'S', 8389, 'l', 'P', 'h', '4275', '3019', '9711', 'd', '7655', 'j', 'Y', 'H', 'f', '3135', '9479', 'K', 'E', 'J', '9713', '6953', 'D', 7661, 885, 'J', 7381, 2713, 1355, 451, 'N', 'P', 'T', 5127, 8301, 1891, 9947, 'x', 7295]

Ex Output:
h, 4275, 3019, 9711, d, 7655, j, Y, H, f, 3135, 9479, K, E, J, 9713, 6953


Ex Input:
[3639, 'F', 'c', 3407, 8447, 5173, 'X', 'z', 'M', '7219', '4445', 'v', 'v', 'Z', '831', '7629', '8037', 'd', '7901', '6085', 'X', '9613', '9723', '7123', '835', '2747', '4899', 'K', '7911', 'H', 1803, 2749, 'a', 1615, 'c', 'p', 2793, 7285, 3523, 'o', 'k', 'N', 'l', 7933, 'F', 9547], ['w', 8911, 4115, 'K', 't', 9047, 8901, 4375, 3097, 8965, 't', 471, 6623, 8503, '7219', '4445', 'v', 'v', 'Z', '831', '7629', '8037', 'd', '7901', '6085', 'X', '9613', '9723', '7123', '835', '2747', '4899', 'K', '7911', 'm', 7127, 399, 'h', 'k', 'f', 4969, 't', 5681, 'n', 'h', 'A', 3489, 1873, 4439, 7645, 4345, 'g']

Ex Output:

7219, 4445, v, v, Z, 831, 7629, 8037, d, 7901, 6085, X, 9613, 9723, 7123, 835, 2747, 4899, K, 7911