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: ['G', 'H', 4001, 403, 9039, 1551, 7913, 7575, 2517, 'y', 'Q', 'Q', 5437, 7981, 5903, 103, 'S', 'k', 219, 'C', 'j', 7339, 't', 8985, 'D', '3415', '4883', '7211', 'G', '6569', '8381', '3233', 'F', '6649', 'f', '8105', '7597', '6141', '2551', 'N', 'p', '2091', '9077', '7413', '4673', '6457', '8267', 'D', '5701', 'b', '4653', 'Z', 'V', 1131, 'd', 187, 7895, 7], [6879, 6309, 3503, 'H', 9815, 'F', 'E', 7981, 'g', 6971, 2033, 4533, 97, 3653, 'h', 'L', 7703, 'W', 'b', 'L', 9283, 2825, 'l', 4771, '3415', '4883', '7211', 'G', '6569', '8381', '3233', 'F', '6649', 'f', '8105', '7597', '6141', '2551', 'N', 'p', '2091', '9077', '7413', '4673', '6457', '8267', 'D', '5701', 'b', '4653', 'r', 4277, 9933, 6227, 'L', 'r', 'L', 'E', 'U', 'c', 'o', 'V']
A:
3415, 4883, 7211, G, 6569, 8381, 3233, F, 6649, f, 8105, 7597, 6141, 2551, N, p, 2091, 9077, 7413, 4673, 6457, 8267, D, 5701, b, 4653