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: ['C', 8521, 7795, 9685, 't', 's', 'Y', 4427, 'G', 'g', 3923, 1987, 'I', '1293', 'h', '1535', '7623', '2773', 'r', 'O', '1', 'k', 'X', '6835', 'v', '6865', '7441', '865', '1351', 'l', '291', '3809', '9395', '7871', 'r', 't', '3375', 'g', '1849', 'C', '2731', 'a', 9247, 'M', 5611, 6157, 4559, 8913, 'p', 677], ['G', 2087, 'O', 'h', 'G', 'h', 'P', 3269, 'z', 9673, 'X', 'I', '1293', 'h', '1535', '7623', '2773', 'r', 'O', '1', 'k', 'X', '6835', 'v', '6865', '7441', '865', '1351', 'l', '291', '3809', '9395', '7871', 'r', 't', '3375', 'g', '1849', 'C', '2731', 'r', 'g', 'C', 'j', 'E', 'u', 2625, 'V', 'Y', 3301, 'i', 'x', 1437, 3967, 9707, 5391, 'P', 'N', 4881, 9893, 'D']
A:
I, 1293, h, 1535, 7623, 2773, r, O, 1, k, X, 6835, v, 6865, 7441, 865, 1351, l, 291, 3809, 9395, 7871, r, t, 3375, g, 1849, C, 2731