Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4535, 8543, 1905, 4865, 6589, 'L', 'G', 'd', 'g', 1411, 4415, 'X', 8047, '175', '5973', 'g', '9799', '1493', 'f', '5487', '6455', 'N', '6947', '2459', 'P', 'u', '9833', 'Q', 't', '461', 'e', 'm', 'Q', '6321', '2115', 'w', 'E', 'Q', 725, 'd', 4347, 'Z'], ['G', 5947, 'E', 'G', 4651, 'h', 4767, '175', '5973', 'g', '9799', '1493', 'f', '5487', '6455', 'N', '6947', '2459', 'P', 'u', '9833', 'Q', 't', '461', 'e', 'm', 'Q', '6321', '2115', 'w', 'E', 'P', 'm', 1229, 'P', 9675, 4035, 'N', 8885, 'd', 'h']
Output:
175, 5973, g, 9799, 1493, f, 5487, 6455, N, 6947, 2459, P, u, 9833, Q, t, 461, e, m, Q, 6321, 2115, w, E