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

Input: Consider Input: [987, 885, 2111, 'P', 'e', 'h', 'h', 'C', 'P', 'V', '4563', 'E', 'J', 'M', 'n', 'C', 'Q', 'P', 'k', 'S', 'M', '8993', '8675', '6707', 'Q', 'r', '4351', 'Q', 'q', 'a', 6295, 1061, 1619, 3509, 8583, 'f', 1157, 5365, 'l', 'x', 'B', 'U', 141, 5753, 'F', 7595, 'H'], [8245, 137, 5887, 1267, 5851, 'n', 7393, 'f', 9739, 9983, 'h', 'h', 'C', 'P', 'V', '4563', 'E', 'J', 'M', 'n', 'C', 'Q', 'P', 'k', 'S', 'M', '8993', '8675', '6707', 'Q', 'r', '4351', 'Q', 'q', 'F', 'k', 3463, 'U', 3587, 't', 'j', 'q', 'M', 1213, 9955, 'h', 9779, 'l', 8839, 'G', 8477, 9341, 6071, 'm']

Output: h, h, C, P, V, 4563, E, J, M, n, C, Q, P, k, S, M, 8993, 8675, 6707, Q, r, 4351, Q, q


Input: Consider Input: [6103, 'W', 'k', 931, 'r', 'v', 'w', 'X', '5537', '3209', '4831', 'R', '2093', 'U', 'b', 'w'], [9617, 'F', 3411, 'X', '5537', '3209', '4831', 'R', '2093', 'U', 'O', 9311, 5805]

Output: X, 5537, 3209, 4831, R, 2093, U


Input: Consider Input: [4821, 1915, 'g', 7517, 3273, '211', '4575', 'N', 'A', '8657', '5379', 'H', '8043', '601', 'J', '7485', '8611', '5753', 'G', 'N', 2253, 'h', 'B', 6899], ['d', 639, 'M', 'V', 'C', 689, '211', '4575', 'N', 'A', '8657', '5379', 'H', '8043', '601', 'J', '7485', '8611', '5753', 'A', 8283]


Output: 211, 4575, N, A, 8657, 5379, H, 8043, 601, J, 7485, 8611, 5753