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

Input: Consider Input: ['o', 5261, 'R', 8999, 'G', 1965, 3921, 9539, 5343, 'c', 6119, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'S', 6387, 'u'], ['B', 'X', 319, 1715, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'T', 'Q', 3169, 'x', 'L', 'Q', 1161, 5639]

Output: 4617, 7787, P, 295, U, 1429, 7667, G, 8607, R, 7375, E, R


Input: Consider Input: ['E', 'e', 'C', 'k', 5673, 2461, 'd', 'g', '1699', '8221', 'a', 'L', 'h', 'u', 'c', '2485', 'D', '5387', 'O', 'H', 'R', '6189', '539', 'T', 'J', '5461', '3691', 'd', '3389', '8315', 'Z', 'b', '5401', 'g', 7959, 9915, 9195, 8581], ['I', 'r', 'P', 'v', 'd', 'g', '1699', '8221', 'a', 'L', 'h', 'u', 'c', '2485', 'D', '5387', 'O', 'H', 'R', '6189', '539', 'T', 'J', '5461', '3691', 'd', '3389', '8315', 'Z', 'b', '5401', 'S', 't', 2069, 1067, 9577, 6283, 1527, 'l', 'X', 'L', 5625, 9857, 8631, 'S', 'e']

Output: d, g, 1699, 8221, a, L, h, u, c, 2485, D, 5387, O, H, R, 6189, 539, T, J, 5461, 3691, d, 3389, 8315, Z, b, 5401


Input: Consider Input: ['r', 2687, 'A', 5395, 'U', 'L', 4987, 8559, 7979, 'r', 'R', 6617, 'j', 7731, 7965, 8297, 3189, 4991, 'b', 8829, 6675, 7935, 7129, 10003, 3635, 'o', 'e', '159', 'b', 'Y', '5083', 'H', '6849', '4061', '823', '3367', 'H', '4809', '6377', 'd', 'y', 'D', 'Y', 'Y', '3067', 'N', 'b', '7591', '9971', 'y', 'o', '8627', '4771', '2793', 'Q', 'N', 'R', 'Y', 5107, 1757, 'X', 'k', 'n', 455, 6251, 4091, 'F', 'o', 4751, 'g', 'n', 'y', 8653, 6791, 4223, 'S', 3183, 8655, 9763], ['a', 2855, 1983, 8691, 5399, 1479, 2067, 'c', 'n', 'o', 8351, 5543, 1295, 'f', 'V', 'o', 'e', '159', 'b', 'Y', '5083', 'H', '6849', '4061', '823', '3367', 'H', '4809', '6377', 'd', 'y', 'D', 'Y', 'Y', '3067', 'N', 'b', '7591', '9971', 'y', 'o', '8627', '4771', '2793', 'Q', 'l', 9955]


Output: o, e, 159, b, Y, 5083, H, 6849, 4061, 823, 3367, H, 4809, 6377, d, y, D, Y, Y, 3067, N, b, 7591, 9971, y, o, 8627, 4771, 2793, Q