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

Ex Input:
['v', 1865, 4265, 'k', 3919, '4767', '4811', 'F', 'N', '217', 'z', 'G', 'M', '6733', '8855', '2983', 'r', '5191', 'D', 817, 'J', 8167, 8877, 'l', 'r', 8675, 'h', 'b', 4225, 8785, 6811], ['w', 4835, 'R', '4767', '4811', 'F', 'N', '217', 'z', 'G', 'M', '6733', '8855', '2983', 'r', '5191', 'Z', 9303, 2325, 'W']

Ex Output:
4767, 4811, F, N, 217, z, G, M, 6733, 8855, 2983, r, 5191


Ex Input:
[443, 'w', 9731, 'M', 'N', 'P', '9231', 'j', 'H', '5851', 'F', 'W', 2301], ['Z', 1747, 6223, 'u', 1065, 'J', 'N', 'P', '9231', 'j', 'H', '5851', 'J', 5037, 9047]

Ex Output:
N, P, 9231, j, H, 5851


Ex Input:
['V', 5329, 8085, 'P', 'x', 8755, 1503, 'i', 'J', 'f', 'F', 'P', 'o', '6661', 'm', 'C', 'P', 'A', '291', '8021', 'g', 'i', '9461', 'j', '8435', '861', 'V', 'S', '4581', '5325', 'X', 'Z', 'k', 4837, 'S', 4623, 5943], ['w', 'V', 'X', 'U', 7723, 'C', 2293, 6079, 2371, 'E', 'l', 'q', 'W', 403, 8937, 'j', 5393, 2743, 'A', 'J', 'V', 6871, 'l', 's', 'J', 'f', 'F', 'P', 'o', '6661', 'm', 'C', 'P', 'A', '291', '8021', 'g', 'i', '9461', 'j', '8435', '861', 'V', 'S', '4581', '5325', 'X', 'Z', 'p', 2141, 3441, 2517, 7843, 'M', 9183, 8003, 'p', 6173, 'E', 'j', 4163, 'C', 2413, 6109, 'A', 'B', 8883, 3281, 'e', 1373, 'E', 'w']

Ex Output:

J, f, F, P, o, 6661, m, C, P, A, 291, 8021, g, i, 9461, j, 8435, 861, V, S, 4581, 5325, X, Z