Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['E', 'm', 'z', 4047, 'm', 'K', 'b', '9041', 'E', 'E', '3053', 'b', 'n', '6623', '193', '7147', '9651', '5743', '7547', '4707', 'r', '5927', 'T', 4919, 3045, 'v'], ['r', 4439, 'O', 2157, 2253, 'D', 8143, 8441, 'F', 9945, 'A', 'J', 'D', 'D', 'h', '9041', 'E', 'E', '3053', 'b', 'n', '6623', '193', '7147', '9651', '5743', '7547', '4707', 'r', '5927', 'i', 7583, 'H', 'E', 'N', 'C', 1613, 5555, 'y', 'D', 'w', 6151, 6093]
Output:
9041, E, E, 3053, b, n, 6623, 193, 7147, 9651, 5743, 7547, 4707, r, 5927