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

Input: Consider Input: [6017, 2811, '8157', '9625', 'P', 3629], [7857, 1357, '8157', '9625', 'z', 'z']

Output: 8157, 9625


Input: Consider Input: ['n', 'B', 9073, 2685, '3289', '9837', '4995', 'e', '3075', 'm', '1005', '2279', 'P', '3949', '643', 'y', '6717', 'I', '891', 'k', 'Z', 'i', 643, 5111, 2247, 'a', 'D', 'd', 1549, 'y', 513, 9369], ['Q', 'n', 'z', 9967, 'S', 9781, 1179, 'f', 5261, '3289', '9837', '4995', 'e', '3075', 'm', '1005', '2279', 'P', '3949', '643', 'y', '6717', 'I', '891', 'k', 'G', 215, 'Q', 4821, 9073]

Output: 3289, 9837, 4995, e, 3075, m, 1005, 2279, P, 3949, 643, y, 6717, I, 891, k


Input: Consider Input: ['L', 4653, 'm', 9279, 'p', 'z', 'B', 'h', '5419', 'L', '9891', 'U', 'V', 3125, 6673], ['z', 9467, 'l', 'B', 'h', '5419', 'L', '9891', 'U', 'd', 2239, 7713, 123, 'q']


Output: B, h, 5419, L, 9891, U