Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['m', 'J', 6755, 7167, 6815, 'D', 7557, 5205, 6153, 'p', 'D', 5147, 'j', 5729, 7431, 'A', 'S', 1757, 'A', '4747', '2361', '9831', '7035', 'l', 'E', 'd', '5271', 'k', '8587', 'a', '6087', '2729', 'c', 't', '3359', 'D', 'A', 'R', '6161', '1177', '1875', 'K', 'K', '1795', '5979', '7813', 'K', 'P', 'u', 'c', 9169, 2521, 'u', 'Q', 'F', 8713, 5973, 9285, 2027, 5613, 2503, 8681, 6107], ['n', 855, 'k', 'G', 2679, 9889, 4751, 'v', 'H', 2509, 'U', 8579, 'x', 'c', 'i', 'C', 2741, 3349, 'Y', '4747', '2361', '9831', '7035', 'l', 'E', 'd', '5271', 'k', '8587', 'a', '6087', '2729', 'c', 't', '3359', 'D', 'A', 'R', '6161', '1177', '1875', 'K', 'K', '1795', '5979', '7813', 'K', 'P', 'G', 9649, 'J', 'D', 5983, 'T', 'r', 5939, 4243, 4669, 'Z', 'J', 'b', 683, 'D', 'S', 'x', 'i', 3247, 2995, 5461]
Output:
4747, 2361, 9831, 7035, l, E, d, 5271, k, 8587, a, 6087, 2729, c, t, 3359, D, A, R, 6161, 1177, 1875, K, K, 1795, 5979, 7813, K, P