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

Ex Input:
['h', 'L', 2481, 8463, 1309, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'o', 'I', 4133, 't', 'i'], ['P', 5497, '7587', '521', 'a', '1617', '5245', '5629', '9977', 'I', 2251, 'p', 's', 'n', 'k', 8259]

Ex Output:
7587, 521, a, 1617, 5245, 5629, 9977


Ex Input:
['z', 'L', 'e', 3279, 's', 'U', 'p', '2885', 'w', 'x', 7713], [3907, 'e', 's', 'U', 'p', '2885', 'w', 'F', 'x', 'v', 5319]

Ex Output:
s, U, p, 2885, w


Ex Input:
['E', 6337, 5815, 'd', 'v', 'N', 2877, 447, 8493, 8477, 'J', 8615, 1783, 'Z', 2725, 5495, 6071, '5643', '5017', '3933', '7717', '3055', '755', 'd', '1125', '3569', '655', '277', '8919', '1035', '2473', '4363', 's', '6943', 'g', '8261', 'B', 'X', 2177, 8321, 5321, 3925, 'i', 5193, 'u', 'E', 'd'], ['M', 'i', 'O', 6203, 8839, 4273, 'O', 'c', 'B', 1951, 'I', 7513, '5643', '5017', '3933', '7717', '3055', '755', 'd', '1125', '3569', '655', '277', '8919', '1035', '2473', '4363', 's', '6943', 'g', '8261', 's', 6847, 'E', 'b', 'b', 6885, 9663, 'n', 8293, 5061, 3205, 1843]

Ex Output:

5643, 5017, 3933, 7717, 3055, 755, d, 1125, 3569, 655, 277, 8919, 1035, 2473, 4363, s, 6943, g, 8261