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

Input: Consider Input: ['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]

Output: h, 1181, 1631, 2605, 587, 1477, 2707, R, O


Input: Consider Input: [3937, 'R', 'H', '3517', '1845', 'Y', '8999', '7003', '6677', '8517', 'k', 'W', '5321', '5817', 's', '271', '4109', 'o', 5471, 's', 8751, 2307, 4959, 2645, 7227, 3355, 'Z', 'c', 'D', 1155, 'W', 'T'], ['V', 'B', 'z', 2111, 'H', '3517', '1845', 'Y', '8999', '7003', '6677', '8517', 'k', 'W', '5321', '5817', 's', '271', '4109', 'b', 8675, 9843, 'v', 'n']

Output: H, 3517, 1845, Y, 8999, 7003, 6677, 8517, k, W, 5321, 5817, s, 271, 4109


Input: Consider Input: ['Q', 'T', 6451, 's', 1077, 's', 4181, 429, '5405', '6625', '8369', 'X', '937', 'R', '5975', '5901', 'D', '4491', 'E', '4257', 'h', '3653', '9221', 'C', '4251', '5739', '2855', '7685', '479', '2013', 'c', '7801', 'H', 'W', '5499', '6453', 'S', 'l', 9589, 719, 9801, 3075, 9803, 'U', 'c', 2487, 'y', 6141, 'd', 1143, 5913, 1233, 's', 6185, 2315, 779, 4681, 51, 7807, 2781, 'C', 7245, 3673], [7547, 8737, 1311, 4627, 'E', 'c', '5405', '6625', '8369', 'X', '937', 'R', '5975', '5901', 'D', '4491', 'E', '4257', 'h', '3653', '9221', 'C', '4251', '5739', '2855', '7685', '479', '2013', 'c', '7801', 'H', 'W', '5499', '6453', 'S', 'C', 8195, 3127, 'h', 'x', 'O', 'z', 'e', 'q', 895, 'B', 'z', 6815, 'M', 673, 'q', 'L', 'e', 'm', 'Z']


Output: 5405, 6625, 8369, X, 937, R, 5975, 5901, D, 4491, E, 4257, h, 3653, 9221, C, 4251, 5739, 2855, 7685, 479, 2013, c, 7801, H, W, 5499, 6453, S