Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['R', 'g', 'F', 'K', 4307, 'G', '9687', '8879', '3069', 'J', 'g', 'f', 'G', '4683', 'e', 'f', '1957', 'Y', '1713', '1777', '4211', 'o', '3191', '1683', '8157', 'R', '5069', 'l', '2743', '459', '7469', '2845', 'c', 'M', 'F', 9137, 'C', 'z', 2291, 'G', 'a', 9517, 1205, 1553, 5545, 'h', 'n', 'U', 1839, 7599, 'z'], ['j', 'z', 'D', 91, 'g', 63, 'K', 'q', 'a', 't', 'e', 'V', 1583, 8787, 229, 9071, 1799, 813, 3569, 'n', 5413, 'E', 'p', '9687', '8879', '3069', 'J', 'g', 'f', 'G', '4683', 'e', 'f', '1957', 'Y', '1713', '1777', '4211', 'o', '3191', '1683', '8157', 'R', '5069', 'l', '2743', '459', '7469', '2845', 'R', 'n', 'Q', 'M', 'd', 'M', 'h', 9993, 931, 131, 4779, 497, 6725, 'l', 'q', 'J', 1289, 9591, 'G', 3335, 'f', 1625, 6043, 'e']
Output:
9687, 8879, 3069, J, g, f, G, 4683, e, f, 1957, Y, 1713, 1777, 4211, o, 3191, 1683, 8157, R, 5069, l, 2743, 459, 7469, 2845