In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example is below.
Q: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
A: 8297, b
Rationale: 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: [115, 'O', 'k', 'S', 'h', 'z', 'r', '2541', '4819', '8693', 'W', '379', '2221', '8871', 'N', '1635', 'J', '2589', '4781', 'I', '6089', '6601', '7487', '3809', 'W', 'g', '6199', '2257', '1851', '5923', 'i', 9643, 5085, 565, 2551, 'r', 6241, 8893, 't', 6265, 5739, 'H', 9551, 'o', 4467, 'g', 629, 6411, 'f', 5805, 's', 'j', 1293, 4809, 143], [663, 'F', 'I', 'V', 'v', 7053, 9865, 'S', 's', 'c', 9945, 'k', 9533, 'T', 't', 5023, 9877, 9073, 1283, 'f', 7275, 4685, 'k', 'S', 'h', 'z', 'r', '2541', '4819', '8693', 'W', '379', '2221', '8871', 'N', '1635', 'J', '2589', '4781', 'I', '6089', '6601', '7487', '3809', 'W', 'g', '6199', '2257', '1851', '5923', 'F', 'P', 'O', 'j']
A:
k, S, h, z, r, 2541, 4819, 8693, W, 379, 2221, 8871, N, 1635, J, 2589, 4781, I, 6089, 6601, 7487, 3809, W, g, 6199, 2257, 1851, 5923