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: [621, 7677, 'b', '889', '6721', 'H', 'd', 'S'], [8151, 'F', 'b', '889', '6721', 'h', 4123]

Output: b, 889, 6721


Input: Consider Input: [3881, 'g', '9151', '3469', 'D', 'h', '5075', 'C', '311', 'T', 'i', 'S', '8189', '3985', 'I', 'A', '2541', 'A', 't', 9217, 'F', 7759, 7067, 'J', 8885, 'f', 4091, 'n', 8495, 'U', 'e', 'p'], [9171, 'Q', 'i', 'r', 2141, 'M', 'L', 'I', 4865, 'O', 6431, 10007, '9151', '3469', 'D', 'h', '5075', 'C', '311', 'T', 'i', 'S', '8189', '3985', 'I', 'A', '2541', 'D', 9863, 1247, 9599]


Output: 9151, 3469, D, h, 5075, C, 311, T, i, S, 8189, 3985, I, A, 2541