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: ['v', 9213, 6871, 9425, 'o', 6469, 261, 5067, 'n', 1601, 'Z', 9741, 8161, 1645, 1323, 4145, 5147, 'H', 6671, 8971, '7305', 'v', 'A', '9257', '8935', 'D', 'g', 'e', 'i', '8147', 'O', 'a', '9391', 'y', '9025', '2271', '4269', 't', '1493', 'V', 'M', '2945', '2665', 'E', '7587', '17', 'K', 'W', 8347, 'Z', 277, 3015, 5387, 1635, 4141, 7765, 9093, 3539, 'L', 1437, 7979, 3005, 'y', 'n', 'V'], [5127, 'q', 'V', 'F', 7029, 1127, 6021, 5383, 'W', 1209, 'p', 'L', 3551, 'K', 'P', 1205, 4553, 731, '7305', 'v', 'A', '9257', '8935', 'D', 'g', 'e', 'i', '8147', 'O', 'a', '9391', 'y', '9025', '2271', '4269', 't', '1493', 'V', 'M', '2945', '2665', 'E', '7587', '17', 'K', 'U', 6665, 4289, 9885, 6305, 'g', 5069, 9157, 6295, 2659, 'k', 8547, 'o', 'P', 1539, 'r', 6891, 'V', 5381, 'v', 3343, 1475]
A:
7305, v, A, 9257, 8935, D, g, e, i, 8147, O, a, 9391, y, 9025, 2271, 4269, t, 1493, V, M, 2945, 2665, E, 7587, 17, K