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

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].
Q: ['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']
A:
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