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

Input: Consider Input: [4717, 'J', 'B', 'f', 'a', 9035, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'F', 5099], ['Q', 3557, 'y', 2689, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'k', 8835, 'C', 8979]

Output: 3041, 491, 3395, 3117, 4793, 4305, c

Input: Consider Input: [8555, 1665, 'm', 5361, 2523, 'L', 'T', 'P', 'B', 'q', 'W', '2357', '6563', 'd', '8239', 'p', 'c', 'e', 'd', 'S', 'k', 'H', 'U', 'g', 'j', 'r', 't', 'F', 8547, 1815, 1599, 4083, 'm', 9959, 'R', 'L'], [7829, 'N', 1893, 4933, 9825, 9043, 'B', 'q', 'W', '2357', '6563', 'd', '8239', 'p', 'c', 'e', 'd', 'S', 'k', 'H', 'U', 'g', 'j', 'r', 'C', 'p', 2443, 'Q', 'H', 155, 277, 7833, 8183]

Output: B, q, W, 2357, 6563, d, 8239, p, c, e, d, S, k, H, U, g, j, r

Input: Consider Input: [8855, 6269, 6185, 'q', 3671, 9641, '9075', 'k', 'e', 'N', '3041', '8761', '9591', '7451', 'Q', 'D', 'e', 9433, 'u', 7331, 4031], [6263, 7589, 'Z', 6563, 1565, 'I', 9773, 'B', 'Z', '9075', 'k', 'e', 'N', '3041', '8761', '9591', '7451', 'Q', 'q', 9205]
Output: 9075, k, e, N, 3041, 8761, 9591, 7451, Q