Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [1121, 3191, 2045, 6709, 8869, '3009', 'a', '4343', '8237', 'u', '5511', '865', 'L', 'o', 'P', '4307', '1073', 'm', 'v', 'W', '9907', '5291', 'Q', 2783, 'N', 'z', 'N'], [3343, 'A', 'h', 'j', 8049, 'H', 7611, 4971, 355, 3847, 57, '3009', 'a', '4343', '8237', 'u', '5511', '865', 'L', 'o', 'P', '4307', '1073', 'm', 'v', 'W', '9907', '5291', 7075, 5483, 6111, 'N', 'a', 'M', 9467, 1431, 2747, 'g', 'c', 8571]
Output:
3009, a, 4343, 8237, u, 5511, 865, L, o, P, 4307, 1073, m, v, W, 9907, 5291