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

Input: Consider Input: [5523, 6861, 3635, 2401, 4183, 835, 'g', '8277', 'q', 'J', 'n', 'A', 'T', '7569', '7187', 'E', 'o', '8695', 'H', 'l', 'z', 'q', '8419', '653', 'q', 'I', 'L', 5555, 8467, 7403, 'm', 'q', 'Q', 5691, 'Z', 7941, 8365, 't', 'M', 'q'], [1149, 7583, 'O', 'z', 'N', 7003, 'C', '8277', 'q', 'J', 'n', 'A', 'T', '7569', '7187', 'E', 'o', '8695', 'H', 'l', 'z', 'q', '8419', '653', 'b', 'H', 'w', 'r', 685, 'D', 'o', 2299, 5915, 4613]

Output: 8277, q, J, n, A, T, 7569, 7187, E, o, 8695, H, l, z, q, 8419, 653


Input: Consider Input: [605, 'W', 7189, 'X', '7897', '5823', 'P', '9001', 'J', 'r', 2595], ['z', 'W', '7897', '5823', 'P', '9001', 'J', 'Z', 'w']

Output: 7897, 5823, P, 9001, J


Input: Consider Input: ['n', 'S', 5627, 'r', 'r', 6443, 'f', '9307', 'o', '8811', '6761', '3339', '2941', '1699', 'e', '7767', '9279', 'X', 'E', '3137', 'J', 'C', '6129', 's', 'y', 'h', 'm', '1487', 'w', '7351', '1477', '9315', 't', 'q', 'Y', 'A', 'M', 'Y', 'A', 5431], ['t', 3845, 373, 'P', 1323, 'e', 4853, 4001, 9223, 2357, '9307', 'o', '8811', '6761', '3339', '2941', '1699', 'e', '7767', '9279', 'X', 'E', '3137', 'J', 'C', '6129', 's', 'y', 'h', 'm', '1487', 'w', '7351', '1477', '9315', 't', 'q', 'Y', 'A', 'O', 'h', 'C', 'R', 'h', 4529, 2083, 1635, 6145, 5049, 5199, 'h', 9233, 'v', 141, 'M', 8359, 'a', 8383, 2521]


Output: 9307, o, 8811, 6761, 3339, 2941, 1699, e, 7767, 9279, X, E, 3137, J, C, 6129, s, y, h, m, 1487, w, 7351, 1477, 9315, t, q, Y, A