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

Input: Consider Input: [6987, 'F', 'j', 'E', 'P', 947, 823, 'P', 4655, 'C', 'l', 'R', 'z', 5705, 'I', 'H', 'y', 2167, 7443, 'E', 'F', 'd', '567', '1385', 'd', '1013', 'Q', '3983', '5891', '6397', '1701', 'd', 'v', 'N', '4551', '9415', '5691', 'n', '3435', '1485', 'u', 'Q', '3191', 'D', 'y', 665, 'P', 'k'], [4453, 'F', 'b', 1309, 'm', 'H', 'd', '567', '1385', 'd', '1013', 'Q', '3983', '5891', '6397', '1701', 'd', 'v', 'N', '4551', '9415', '5691', 'n', '3435', '1485', 'u', 'Q', '3191', 'p', 'f', 7091]

Output: d, 567, 1385, d, 1013, Q, 3983, 5891, 6397, 1701, d, v, N, 4551, 9415, 5691, n, 3435, 1485, u, Q, 3191

Input: Consider Input: [3035, 7591, 'C', 'q', 'V', 'Y', 'C', 'D', '8629', '8873', 'O', '2505', '123', '8427', 'E', 'f', 'j', 's', 'G', '813', 't', '4113', '9319', '3221', 'K', 'C', 'C', '1679', 'Q', 'a', 'G', 'N', 'T', 's', 8601, 'j', 'D', 8513, 'd', 'm', 9725, 'V', 'R', 6981, 3191, 9251, 3009, 'y'], [8511, 3233, 'V', 'k', 8569, 511, 'G', 3587, 2909, 2225, 3411, 3135, 'w', 'V', 'Y', 'C', 'D', '8629', '8873', 'O', '2505', '123', '8427', 'E', 'f', 'j', 's', 'G', '813', 't', '4113', '9319', '3221', 'K', 'C', 'C', '1679', 'Q', 'a', 'k', 'S', 'S', 9041, 2591, 7417, 'N', 'W', 'b']

Output: V, Y, C, D, 8629, 8873, O, 2505, 123, 8427, E, f, j, s, G, 813, t, 4113, 9319, 3221, K, C, C, 1679, Q, a

Input: Consider Input: [3659, 4455, 'G', 'i', 'O', '8317', '7627', 'l', 'F', '9599', '4585', 'h', '3563', 'W', '7449', 'P', 'o', 1425], ['S', 1449, 'J', 'H', 535, 1517, 'q', '8317', '7627', 'l', 'F', '9599', '4585', 'h', '3563', 'W', '7449', 'P', 'M', 'a', 8079]
Output: 8317, 7627, l, F, 9599, 4585, h, 3563, W, 7449, P