Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['F', 'H', 5717, 'V', 'l', 6995, 'g', 'f', '3759', 'F', 'S', '1447', '799', 'O', 'N', 'g', 8625, 'm', 8441, 3733, 6227, 'l', 8297], [9399, 'M', 'i', 4487, 7429, 4695, 'O', 'f', '3759', 'F', 'S', '1447', '799', 'O', 'N', 'Q', 'A']
Output:
f, 3759, F, S, 1447, 799, O, N