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

Example Input: [3277, 9365, 4973, 'q', 'S', 6337, 3661, 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'l', 'w', 5939, 6533, 'h', 1877, 10017, 'q'], ['L', 8235, 'n', 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'O', 1591, 'C', 2553, 2613, 'E', 3577, 'u']
Example Output: Q, J, c, 3205, 2707, 1869, 1285, z, c

Example Input: ['S', 'o', 9247, 'W', 'G', 5923, 4791, '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 's', 'T', 5829, 'p'], ['K', 'U', 'H', 8611, 1005, 'I', '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 'C', 9577, 8279, 2247, 'x', 4917, 'H']
Example Output: 8083, 3207, 9137, 9359, 9297, 9667, 75, h, 9671

Example Input: ['W', 6651, 5181, 'P', 'g', 2401, 4165, 7497, '7797', '5365', 'a', 'm', '2671', '271', '9297', '9521', '8877', '8271', 'O', '803', 'S', '4655', 'y', 'y', 9137, 2647, 7023, 1595, 1713, 'E', 2857, 569, 'Y', 'Q'], [3571, 6743, 2585, 'k', 'R', 's', '7797', '5365', 'a', 'm', '2671', '271', '9297', '9521', '8877', '8271', 'O', '803', 'S', '4655', 'y', 'X', 3923, 'g', 'b', 'E', 'P', 'F', 'F', 1195, 8909, 'B', 'C', 6695, 7165]
Example Output:
7797, 5365, a, m, 2671, 271, 9297, 9521, 8877, 8271, O, 803, S, 4655, y