You will be given a definition of a task first, then some input of the task.
In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

['s', 'o', 2985, 6953, 487, 947, 6907, 'q', 'O', 'W', 'h', 3309, 2109, 9731, 'V', 3723, 't', 7853, 6991, 'd', 'L', 'g', '2733', 'z', '7451', '7361', '659', '865', 'y', '7019', 'B', 'f', '9611', '3227', '8101', '7943', 'Q', 'B', '8529', 'X', 'z', '9061', 'H', '6081', '2149', '5437', 'C', 'U', 'J', 't', 'K', 7581, 'B', 673, 'B', 'l', 'K', 'T', 8193, 2171, 2333, 8227, 7739, 'A', 2023, 6297, 't', 'R', 5575, 8507, 5567], ['N', 'l', 5931, 'F', 'G', 7981, '2733', 'z', '7451', '7361', '659', '865', 'y', '7019', 'B', 'f', '9611', '3227', '8101', '7943', 'Q', 'B', '8529', 'X', 'z', '9061', 'H', '6081', '2149', '5437', 'C', 'U', 'J', 'z', 2849, 'S', 'n', 'I', 'M', 8651, 6869, 'Y', 'n', 4607, 1429, 2503, 'B', 'n', 5487, 493, 2159, 'U', 8857, 'L', 8663, 3827, 'f']
Output:
2733, z, 7451, 7361, 659, 865, y, 7019, B, f, 9611, 3227, 8101, 7943, Q, B, 8529, X, z, 9061, H, 6081, 2149, 5437, C, U, J