Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['B', 6743, 'l', 'I', 2773, 'a', 8205, 7127, 5877, 8427, 'a', 'F', 929, '2299', 'P', '3045', 'x', 'i', '9095', '4061', 'j', 'd', 'E', 'l', '1497', 'E', 'U', '6491', '1385', 'K', 'k', 'n', 'd', 'u', 'G', 'O', 'B', 5921], [4461, 'g', 'w', 2465, 'N', 85, 2921, 2129, 'z', 6211, 3077, 4427, 4327, 6595, '2299', 'P', '3045', 'x', 'i', '9095', '4061', 'j', 'd', 'E', 'l', '1497', 'E', 'U', '6491', '1385', 'K', 'k', 'n', 'r', 383, 5359, 9209, 'Q', 5765, 5453, 'V', 'w', 'R', 2919, 1949, 'L', 8175, 'g', 'n', 6677, 899]
Output:
2299, P, 3045, x, i, 9095, 4061, j, d, E, l, 1497, E, U, 6491, 1385, K, k, n