Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['H', 'a', 'm', 'u', 'f', '9167', 'z', '2339', 'l', '1851', 'x', 'a', 'Y', '7573', 'I', 'q', '2895', 'E', 'C', '8309', '9855', '3039', 'x', 'H', 'Q', '3101', 'f', '1343', 'L', 'r', 'v', 'O', 'S', 'E', 'b', 'K'], ['a', 6765, 3619, 8309, 7161, 't', 'W', 305, 81, 3345, 1247, 'u', 'f', '9167', 'z', '2339', 'l', '1851', 'x', 'a', 'Y', '7573', 'I', 'q', '2895', 'E', 'C', '8309', '9855', '3039', 'x', 'H', 'Q', '3101', 'f', '1343', 'L', 'r', 'v', 'H', 8337, 3415, 't', 4357, 6403, 'D', 'W']
Output:
u, f, 9167, z, 2339, l, 1851, x, a, Y, 7573, I, q, 2895, E, C, 8309, 9855, 3039, x, H, Q, 3101, f, 1343, L, r, v