Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [9721, 4443, '1663', '3739', '6185', '1729', '193', '6745', 'Q', 'l', 'u', '1157', 'P', '3845', '2809', 'S', '4551', '6051', '4661', '4227', '6191', '2479', '4837', '4481', 'X', 'p', '7783', 'J', 'l', 'j', 'r', 5073, 'j', 'd', 'P'], ['Y', 4691, 'k', 5745, 'i', 785, 4439, 8015, 1455, 'b', 8491, 'Z', 'M', 6187, 7693, 'Y', 7127, 903, 3585, 7317, 9131, '1663', '3739', '6185', '1729', '193', '6745', 'Q', 'l', 'u', '1157', 'P', '3845', '2809', 'S', '4551', '6051', '4661', '4227', '6191', '2479', '4837', '4481', 'X', 'p', '7783', 'J', 'x', 6499]
Output:
1663, 3739, 6185, 1729, 193, 6745, Q, l, u, 1157, P, 3845, 2809, S, 4551, 6051, 4661, 4227, 6191, 2479, 4837, 4481, X, p, 7783, J