Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['V', 8923, 'l', 7203, 'c', 4533, 'x', 'o', 6945, 'S', '1123', '599', 'C', 'L', '1033', 'J', '6939', 'L', 'd', '9691', '821', '3325', 'T', '9677', '5151', '9179', 'i', 'Y', 'x', 'Q', '8453', '3785', '4559', '1321', '5053', '4037', 'O', '103', 'p', 1087, 7555, 5623, 'W', 'S', 'f', 1229, 'e'], ['V', 'n', 9521, 4847, 'j', 9003, 7469, 'S', 75, 'F', 'd', 'a', 8127, 7695, 7427, 'S', '1123', '599', 'C', 'L', '1033', 'J', '6939', 'L', 'd', '9691', '821', '3325', 'T', '9677', '5151', '9179', 'i', 'Y', 'x', 'Q', '8453', '3785', '4559', '1321', '5053', '4037', 'O', '103', 'O', 9873]
Output:
S, 1123, 599, C, L, 1033, J, 6939, L, d, 9691, 821, 3325, T, 9677, 5151, 9179, i, Y, x, Q, 8453, 3785, 4559, 1321, 5053, 4037, O, 103