Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['M', 'G', 4579, 819, 'K', 'n', 'H', '5455', 'e', 'q', 'f', '8879', '2411', 'J', 'p', '6691', 'R', '2305', '37', 'y', 'K', 't', 'L', 'l', 'Y', 'P', '1465', '1013', '9573', 's', '6601', '9875', '3907', '9167', 'O', 'v', 'O', 'R', 8209, 9567], ['c', 4427, 'e', 9455, 2695, 'A', 2293, 2833, 1735, 'N', 2861, 5707, 6865, 'a', 'p', 7363, 9679, 'u', 'L', 1835, 8707, 'n', 'H', '5455', 'e', 'q', 'f', '8879', '2411', 'J', 'p', '6691', 'R', '2305', '37', 'y', 'K', 't', 'L', 'l', 'Y', 'P', '1465', '1013', '9573', 's', '6601', '9875', '3907', '9167', 't', 4679, 7151, 'S', 'm', 9469, 'c', 6599, 'i', 805, 3681, 'a', 'v', 'F', 2429, 'j', 'W', 'a', 'i', 4963, 'p', 'E', 'm', 3291, 'r', 'F', 2165, 4595, 6929]
Output:
n, H, 5455, e, q, f, 8879, 2411, J, p, 6691, R, 2305, 37, y, K, t, L, l, Y, P, 1465, 1013, 9573, s, 6601, 9875, 3907, 9167