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

Ex Input:
['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]

Ex Output:
5001, 8571, 2343, 9471, P, 6369, 9299


Ex Input:
['P', 'h', 9391, 'u', 9757, 'y', 'a', 'j', 'k', 'Y', '2091', 'U', 'p', 7959, 'F'], [1713, 2679, 'y', 'a', 'j', 'k', 'Y', '2091', 'U', 'V', 'r', 't', 'f', 8179]

Ex Output:
y, a, j, k, Y, 2091, U


Ex Input:
[8975, 7099, 4055, 3673, 'J', 'y', 'P', '1279', '5575', '3767', '2555', '2869', 'D', 'G', 'H', '4511', 'u', 7623, 6931, 'l', 7347], ['X', 'h', 10005, 3053, 5991, 83, 4981, 'J', 'y', 'P', '1279', '5575', '3767', '2555', '2869', 'D', 'G', 'H', '4511', 'x', 6371]

Ex Output:

J, y, P, 1279, 5575, 3767, 2555, 2869, D, G, H, 4511