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

Input: Consider Input: [2087, 5665, 'W', 'H', 6711, '8181', 'q', '1949', 'j', '7351', 'g', 5827, 4893, 9173], [5187, 4249, '8181', 'q', '1949', 'j', '7351', 'w', 'Z', 'C', 3255]

Output: 8181, q, 1949, j, 7351


Input: Consider Input: [9741, 'E', 4251, 8197, 'V', 'd', 'U', 'S', 'l', 4297, 9217, 'O', 6607, '2517', 'G', 'y', 'a', 'F', '1035', '823', 'E', 'J', 'a', '3609', '7379', 'x', 'Y', 'M', '1893', 'O', '4875', 'z', 'B', 'c', '7147', 'u', '9477', 'R', 'u', 587, 'r', 'i', 3977, 's', 'V', 'v', 215, 399, 's', 7561, 25, 3885, 1501, 'W', 7853, 'l', 5145, 'z'], [5441, 169, 9471, 'r', 'i', 7087, 'v', 't', 6273, 'k', 1041, 'd', 'Q', 2227, 5617, '2517', 'G', 'y', 'a', 'F', '1035', '823', 'E', 'J', 'a', '3609', '7379', 'x', 'Y', 'M', '1893', 'O', '4875', 'z', 'B', 'c', '7147', 'u', '9477', 'Z', 'b', 3671, 'y', 9829, 7849, 9049, 'T', 8407, 'M', 'B', 'N', 7837, 2963, 7385, 'K', 8717, 'j', 3621, 75, 'E']

Output: 2517, G, y, a, F, 1035, 823, E, J, a, 3609, 7379, x, Y, M, 1893, O, 4875, z, B, c, 7147, u, 9477


Input: Consider Input: ['y', 8295, 3703, '7165', 'L', '9889', 'S', 'D'], [395, 9237, 'E', '7165', 'L', '9889', 'm', 'H']


Output: 7165, L, 9889