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

Q: [8039, 4457, 'z', 3519, 'q', 'T', 'k', 'b', 'H', 'W', 'H', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'd', 1527, 'o', 1393, 't', 7653], ['g', 2437, 'm', 'b', 2347, 'Q', 6719, 2049, 6643, 'B', 6919, 1873, 'K', 9319, 6729, 'Z', 'E', 8011, 7953, 'M', 1121, 'k', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'o', 1481, 867, 'B', 29]

A: 5561, 1389, 6389, 6923, 339, Q, 5837, D, z, F, 4743, 7197, 1407, 9711, 4355, 4027, 2219, w, S, Z, f, 4091, 2571
****
Q: ['B', 8045, 3145, 4859, 'j', 181, 'l', '3917', '6351', '659', 'v', '4767', 'S', '1001', '1073', 'Y', 'Z', '9763', 'Z', 'o', '2921', 'h', 'H', '3493', 'k', 'D', 6905, 3883, 6211, 'O', 2063, 8071, 9151, 'z', 'N', 9885, 'O', 'R', 'V', 'Z', 483, 3279], [4491, 'p', 'N', 'I', 4883, 2721, 'u', 'V', 'l', '3917', '6351', '659', 'v', '4767', 'S', '1001', '1073', 'Y', 'Z', '9763', 'Z', 'o', '2921', 'h', 'H', '3493', 'm', 5833, 5833, 4299, 8857, 5289, 'J', 7743, 'k']

A: l, 3917, 6351, 659, v, 4767, S, 1001, 1073, Y, Z, 9763, Z, o, 2921, h, H, 3493
****
Q: ['H', 'M', 'H', 'l', 8839, 9187, 4197, 'F', 'a', 'j', 'O', 607, 'Z', 2025, 'X', 7361, 8001, 'o', 'q', 5965, 'O', '8643', 'N', '7805', 'D', '2287', '9343', 'd', '3695', '7123', 'C', 'D', 'd', '4791', 'X', 'i', 'k', 'Z', 'y', '8033', 'U', '4601', 'n', 'j', 'g', 'B', 'A', 6029, 6235, 2331, 2315, 1355, 199, 8117, 5013], [6707, 5291, 'f', 431, 9763, 'n', 'O', '8643', 'N', '7805', 'D', '2287', '9343', 'd', '3695', '7123', 'C', 'D', 'd', '4791', 'X', 'i', 'k', 'Z', 'y', '8033', 'U', '4601', 'Q', 6867, 535, 'j', 'o', 'm', 'h']

A:
O, 8643, N, 7805, D, 2287, 9343, d, 3695, 7123, C, D, d, 4791, X, i, k, Z, y, 8033, U, 4601
****