In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

[Q]: ['n', 'E', '2891', '7537', 'Q', 'J'], [2247, 10017, '2891', '7537', 'e', 1001]
[A]: 2891, 7537


[Q]: ['w', 'i', 5729, 'G', 8651, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'R', 'A', 5949, 8347, 9169, 'N', 9753, 4353, 9447, 5747, 4347, 'f', 8247, 'D', 'y'], ['b', 'd', 237, 'y', 9735, 'M', 'j', 'f', 9789, 'x', 4217, '1845', 'a', '715', 'O', '3649', 'w', '8821', '2545', '1011', 'u', '895', '4133', 'n', '3759', 'w', 'X', 'E', 'e', 4021, 7065, 1651, 'n']
[A]: 1845, a, 715, O, 3649, w, 8821, 2545, 1011, u, 895, 4133, n, 3759, w, X


[Q]: ['S', 'P', 5419, 'C', 1761, 7187, 4951, 4333, 893, 't', 't', 'f', 3383, 'S', '1691', 'O', 'o', 'P', '2497', '6821', '9293', 'P', '6767', '1899', '5059', 'y', 'i', 'K', 'b', 'b', 'E', '3957', 'g', 'z', '1033', 't', 'J', 'l', 'k', 'a', 'd', 3577, 6131, 627, 255, 'b', 3211, 'j', 7031, 'r', 'F', 2847, 1619, 951, 161, 8165, 3881, 6611, 'N', 7385, 'i', 5165, 'W', 'D', 'i', 8461, 'a'], ['X', 'r', 'd', 3999, 8171, 115, 'y', 'T', 'N', 'z', 669, 'M', 3703, 4513, 'x', 1723, 'f', 'y', 'S', '1691', 'O', 'o', 'P', '2497', '6821', '9293', 'P', '6767', '1899', '5059', 'y', 'i', 'K', 'b', 'b', 'E', '3957', 'g', 'z', '1033', 't', 'J', 'l', 'k', 'a', 'A', 9897, 'P', 7907, 9615, 6229, 'q', 'E', 5147, 'v', 2597, 1633, 'f', 'H']
[A]:
S, 1691, O, o, P, 2497, 6821, 9293, P, 6767, 1899, 5059, y, i, K, b, b, E, 3957, g, z, 1033, t, J, l, k, a