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: ['N', 5247, 4955, 5169, 979, 169, 'Z', 3613, 't', 'I', 4353, 735, 'E', 'r', 't', 2085, 'S', '5481', 'e', 'n', 'D', 'G', '6203', '3789', '3565', '4717', '4063', '8119', 'l', 'B', '2293', '6539', 'F', '9995', '2477', 'w', 'R', 5041, 1591, 3891, 9939, 'a', 'Z', 9597, 3591, 'Z', 4301, 9991], ['D', 'k', 9307, 'e', 'm', 3477, 4063, 'N', 5195, 'b', 5609, 4505, 4989, 'f', 7093, 6953, 6199, '5481', 'e', 'n', 'D', 'G', '6203', '3789', '3565', '4717', '4063', '8119', 'l', 'B', '2293', '6539', 'F', '9995', '2477', 'l', 3887, 9151, 'w', 4011, 'L', 'B', 2031, 129, 'X', 8695]
A:
5481, e, n, D, G, 6203, 3789, 3565, 4717, 4063, 8119, l, B, 2293, 6539, F, 9995, 2477