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

Q: [1249, 4091, 'E', 483, 'O', 8427, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'U', 2857, 's'], ['J', 'B', 8825, 9581, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'E', 'e', 'R', 'X', 1739, 'D', 1385, 'e', 6969]

A: 5009, X, Q, 107, F, 6119, 4479, u, o, U, 4405, 1737, K, j, B
****
Q: [4043, 'H', 'i', 'P', 'l', 4101, 5503, '5275', '3425', 'c', 'u', 'M', 'R', 'A', 'f', '7407', '3805', '1547', '1077', 'P', '7387', 'z', 'g', '9607', '299', '9561', '1203', '3189', 'h', 'N', 5083, 'z', 9883, 7117, 'D', 'B', 'b', 'Z', 483, 1565, 'N', 8227, 8593, 7323, 4913, 'H', 1479], ['B', 'A', 'N', 921, 'D', 'F', 1033, 1657, 'o', 9311, 8003, 'X', 3383, 4519, 'b', '5275', '3425', 'c', 'u', 'M', 'R', 'A', 'f', '7407', '3805', '1547', '1077', 'P', '7387', 'z', 'g', '9607', '299', '9561', '1203', '3189', 'h', 'p', 'C', 'j', 1835, 'b', 'm', 'H', 'n', 'a', 'h', 'Z', 'E', 5271, 467, 5481]

A: 5275, 3425, c, u, M, R, A, f, 7407, 3805, 1547, 1077, P, 7387, z, g, 9607, 299, 9561, 1203, 3189, h
****
Q: [8903, 6611, 1631, 3897, 1563, 7477, 8803, '8111', '2813', '5071', 'H', 'a', 's', 'p', '841', 'R', 'j', 5485, 'D', 'r', 'Z', 8105], ['p', 'k', '8111', '2813', '5071', 'H', 'a', 's', 'p', '841', 'q', 8071, 6493, 5643, 1251, 'O', 'H', 9989]

A:
8111, 2813, 5071, H, a, s, p, 841
****