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: [2835, 'Z', 'r', 5151, 'd', 9239, 'z', 7441, 'a', 7071, 'u', 8571, 9379, 'X', 261, 5273, 't', 6575, 'i', 7909, 'F', 'O', '5683', '3655', '2515', '4743', 'd', '6899', '1513', 'C', '9665', 'Y', 's', 'e', 'r', '393', 'c', 'J', 'H', '3151', 'I', 'e', 'Z', 'H', 'm', '6869', 'T', 'Z', 8655, 2431, 'K', 'W', 'a', 'r', 'G', 'G', 'y', 'G', 1401, 3273, 'k', 9401, 'W'], [5519, 1083, 'y', 's', 'R', 'g', 1447, 'E', 'M', 5819, 3247, 'j', 'F', 'O', '5683', '3655', '2515', '4743', 'd', '6899', '1513', 'C', '9665', 'Y', 's', 'e', 'r', '393', 'c', 'J', 'H', '3151', 'I', 'e', 'Z', 'H', 'm', '6869', 'T', 'f', 'i', 8089, 'Q', 1089, 4453, 7307, 'd', 9251, 'P', 6591, 2697, 'V', 'B', 2809, 2137, 1, 2183, 4343, 'd', 'K']
A:
F, O, 5683, 3655, 2515, 4743, d, 6899, 1513, C, 9665, Y, s, e, r, 393, c, J, H, 3151, I, e, Z, H, m, 6869, T