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: [4263, 'A', 8311, 1065, 4203, 639, 'E', 'N', 'd', 'Z', '2433', 'b', '9543', '4993', '4955', '7735', '9153', '8815', '1247', 'G', 'e', 6107, 'd', 1151, 'Z', 8785, 8639, 3621, 6161, 'G', 'Q'], [8887, 'd', 9431, 'K', 'S', 'B', 'E', 4359, 5443, 'Z', '2433', 'b', '9543', '4993', '4955', '7735', '9153', '8815', '1247', 'G', 'A', 7759]
A:
Z, 2433, b, 9543, 4993, 4955, 7735, 9153, 8815, 1247, G