Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7747, 4219, 'r', '10025', 'f', 'H', '3851', '1051', '9789', 'v', '4581', 'F', 'U', 'b', 3337, 7787, 'Q', 5705, 'G', 'N', 'D'], [1093, 4853, '10025', 'f', 'H', '3851', '1051', '9789', 'v', '4581', 'F', 'U', 'q', 'M', 4821, 7751, 'Z', 9141, 'x', 7009]
Output:
10025, f, H, 3851, 1051, 9789, v, 4581, F, U