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: [9789, 5881, 'Y', 'I', 2023, 'v', 'c', 4695, 8921, 'q', 'v', '3317', 'K', 'w', '9145', 'i', 'f', '1925', '4879', '4189', '3047', '2343', 'Y', 7079, 'T', 1617, 7601, 3471], [2581, 'U', '3317', 'K', 'w', '9145', 'i', 'f', '1925', '4879', '4189', '3047', '2343', 'm', 6241, 8437, 7857, 'k', 793, 2565, 6981, 5131, 'w', 'S']
A:
3317, K, w, 9145, i, f, 1925, 4879, 4189, 3047, 2343