Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [9085, 671, 7577, 1741, 949, 7973, 'X', 9695, 5591, '9507', 'o', 'b', '4615', '6221', 'g', '3315', 'g', '5229', 'R', '7015', 'D', 'h', 'Q', 'R', 'n', '4347', '9623', 's', '7911', '7595', 'g', '7141', '857', 'B', 'h', 4231, 5913, 157, 'S', 9183, 'S', 'm', 'f', 8971, 'h', 1239, 'k', 'L'], [4053, 'D', 9643, 6247, 8879, 9543, 'V', 1713, 929, 4595, 4873, 5669, 3515, 2343, 4721, 4571, 'g', 'y', 'B', '9507', 'o', 'b', '4615', '6221', 'g', '3315', 'g', '5229', 'R', '7015', 'D', 'h', 'Q', 'R', 'n', '4347', '9623', 's', '7911', '7595', 'g', '7141', '857', 'u', 229, 'D']
Output:
9507, o, b, 4615, 6221, g, 3315, g, 5229, R, 7015, D, h, Q, R, n, 4347, 9623, s, 7911, 7595, g, 7141, 857