In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Input: Consider Input: ['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']

Output: 997, n, 631, 527, E, A, n, n, G, 1197, R, L


Input: Consider Input: ['H', 191, 5269, 'I', 8869, 'N', 9617, 7679, 'C', '9103', '905', 'N', 'n', 'E', '1397', '1061', '4683', 'x', '5823', 'w', 'F', 'i', 'm', 'L', 5561], ['x', 2143, 2583, 'l', 781, 'i', 67, 7861, 'q', 7467, 8599, '9103', '905', 'N', 'n', 'E', '1397', '1061', '4683', 'x', '5823', 'w', 'F', 'y', 'G', 1961, 'V', 'B', 877, 'J', 6495, 3531]

Output: 9103, 905, N, n, E, 1397, 1061, 4683, x, 5823, w, F


Input: Consider 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