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

Example Input: [365, 6285, 6519, 'Y', 9505, 25, '1855', 'C', 'U', 'k', 'i', 'm', 'e', 'I', 'S', 'X', 'm', 'm', 'J', 'F', '2055', 'I', 'T', '373', 'E', '521', '9519', 'v', '9097', '8995', '5935', 'd', 'K', 'q', 4541, 'f', 7421, 'P', 9167, 1141, 1391, 4937, 'L', 5615, 9795, 'o', 'k', 'p', 'a', 1821, 6191, 'V', 4729, 'n', 'y'], [7711, 7519, 'c', 8955, 6119, '1855', 'C', 'U', 'k', 'i', 'm', 'e', 'I', 'S', 'X', 'm', 'm', 'J', 'F', '2055', 'I', 'T', '373', 'E', '521', '9519', 'v', '9097', '8995', '5935', 'd', 'K', 'U', 9155, 'e', 4505, 4567, 'o', 7503, 'M', 8255, 'J', 9333, 'i']
Example Output: 1855, C, U, k, i, m, e, I, S, X, m, m, J, F, 2055, I, T, 373, E, 521, 9519, v, 9097, 8995, 5935, d, K

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: [1583, 3751, 'O', '8771', '7137', 'E', '8867', 'K', '8391', '1721', '4805', 'i', '3451', 'K', 'P', 'z', 2083], ['R', 7705, 9543, 'U', 'g', 'l', 1565, 1797, 'U', 'J', 'D', 'O', '8771', '7137', 'E', '8867', 'K', '8391', '1721', '4805', 'i', '3451', 'K', 'd', 'R', 4673, 'l', 8103, 10021]
Example Output:
O, 8771, 7137, E, 8867, K, 8391, 1721, 4805, i, 3451, K