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

Input: Consider Input: [319, 1325, 9567, 'M', 'm', 1759, 't', 'Z', 'X', 7981, 2409, 5023, 'b', '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'I', 5289, 1221, 'k', 5727, 5411, 7127, 'F', 'J', 'o', 7587, 'm', 237, 415, 8413, 'j'], ['O', 5043, '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'v', 5793]

Output: 8661, 6609, 8213, Y, 9541, 8065, M, 8267, V, K, 3217, 1111, 1411, u, 9705, V, U, 3171, 4195, Z, t, p


Input: Consider Input: [6559, 2255, 'n', '9599', '4415', 'B', 3911, 4867], ['A', 6419, 'n', '9599', '4415', 'T', 'n', 3281]

Output: n, 9599, 4415


Input: Consider Input: [301, 4903, 'd', 'r', 81, 4865, 'h', 'y', '3609', '7385', 'x', 'h', '7', '2021', '7715', '6857', 'd', 'x', 'U', '9917', '6109', '2225', '9671', 'q', '5571', '5311', 'A', '5891', 'M', 4063, 'Z', 'j', 'e', 'B', 9915, 'c', 7597, 5453, 'K', 'q', 'p', 'q', 8797, 5571], [2635, 5385, '3609', '7385', 'x', 'h', '7', '2021', '7715', '6857', 'd', 'x', 'U', '9917', '6109', '2225', '9671', 'q', '5571', '5311', 'A', '5891', 'L', 'f', 'd', 'M', 'e', 1603, 2513, 'p', 8871, 'v']


Output: 3609, 7385, x, h, 7, 2021, 7715, 6857, d, x, U, 9917, 6109, 2225, 9671, q, 5571, 5311, A, 5891