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

Example Input: ['o', 5261, 'R', 8999, 'G', 1965, 3921, 9539, 5343, 'c', 6119, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'S', 6387, 'u'], ['B', 'X', 319, 1715, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'T', 'Q', 3169, 'x', 'L', 'Q', 1161, 5639]
Example Output: 4617, 7787, P, 295, U, 1429, 7667, G, 8607, R, 7375, E, R

Example Input: [431, 4017, 'R', 'a', 'F', '9581', 'Y', 'f', 'z', 'b', 1235], [4115, 'u', 'g', 'f', 2455, 'a', 'F', '9581', 'Y', 'f', 'z', 'm', 7245, 'I', 7021]
Example Output: a, F, 9581, Y, f, z

Example Input: [2831, 'M', 1409, 4059, 1783, 'Y', 4053, 'a', 'N', '7511', '5147', 'o', 'z', '1281', 'V', '1257', 'R', 'U', '2093', 'x', '6877', 'c', '9219', 'Z', 'w', 'f', 3901, 'm', 1731, 3133], [1869, 'y', '7511', '5147', 'o', 'z', '1281', 'V', '1257', 'R', 'U', '2093', 'x', '6877', 'c', '9219', 'Z', 'a', 9203, 'X', 'K', 2901, 'M', 'x']
Example Output:
7511, 5147, o, z, 1281, V, 1257, R, U, 2093, x, 6877, c, 9219, Z