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

Example Input: [8711, 'f', 8715, 7649, 4967, '5867', 'i', '6567', 'R', '6087', '2945', 'J', 'j', 9099, 6331], ['a', 'T', 'n', 4869, '5867', 'i', '6567', 'R', '6087', '2945', 'M', 3125, 'D', 3835]
Example Output: 5867, i, 6567, R, 6087, 2945

Example Input: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]
Example Output: 5001, 8571, 2343, 9471, P, 6369, 9299

Example Input: [1381, 'm', 'o', '6531', '1573', '6221', '2339', '2245', 't', 'V', 'n', 'U', 'z', '7313', '5949', 'D', '2041', 'u', 'F', '8535', 'v', '8825', 'e', 2185, 6431, 1735, 'v', 8309, 1711, 'f', 'F', 3105, 8701], [3633, 'd', 3757, 'b', 'R', 'T', 1021, 2153, 'M', 3729, 5741, 'C', 'i', 'f', 'd', 1207, 8955, 7727, 'o', '6531', '1573', '6221', '2339', '2245', 't', 'V', 'n', 'U', 'z', '7313', '5949', 'D', '2041', 'u', 'F', '8535', 'v', '8825', 'j', 1045, 2401, 'Z', 2589, 6485]
Example Output:
o, 6531, 1573, 6221, 2339, 2245, t, V, n, U, z, 7313, 5949, D, 2041, u, F, 8535, v, 8825