Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['X', 'F', 'w', 8555, 1703, 'o', 7033, 'Q', 'A', 'C', '1293', '3769', 'J', '9397', '5647', 'B', '5983', 'k', '5809', 'f', 'j', 'f', 'T', '9757', 'm', 't', 'F', 'O', '139', 'N', 'I', 'e', '1875', 'i', 'h', '8475', 'B', 's', 'x', 'W', 'm', 6589, 4335, 711, 'H', 'f', 'j', 5469, 'l'], ['q', 'm', 8989, 8749, 'E', 5197, 9035, 6977, 'l', '1293', '3769', 'J', '9397', '5647', 'B', '5983', 'k', '5809', 'f', 'j', 'f', 'T', '9757', 'm', 't', 'F', 'O', '139', 'N', 'I', 'e', '1875', 'i', 'h', '8475', 'B', 's', 'x', 'W', 'N', 'N', 'B', 8885, 6737, 67, 7741, 'A', 'H', 2659, 'r', 'd', 'x', 9853, 'd', 671, 'C', 'S', 6867, 'R', 7985, 'i', 8385, 9135, 'B', 3157]
Output:
1293, 3769, J, 9397, 5647, B, 5983, k, 5809, f, j, f, T, 9757, m, t, F, O, 139, N, I, e, 1875, i, h, 8475, B, s, x, W