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

Q: [5701, 'Y', 2511, 4707, 'i', 9083, 1187, '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'X', 8863, 7467, 665, 3485, 4035, 'g', 8795], [189, 8331, 'N', 'S', 'U', '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'R', 't', 9581, 5575, 'Q', 'Q', 1209]

A: 749, v, i, f, j, 5983, 4221, p, q, 8703, n, Z, O, A, H
****
Q: [9417, 6541, 'V', 4095, 2535, 8271, 4253, 'r', 7251, 'F', 's', '5673', 'Q', '163', '591', 'G', 'm', 't', '7069', 'c', 'o', 't', 'q', '5595', 'D', 'Y', 'm', 3611, 'K', 7553, 'B', 'K', 'T'], ['P', 'r', 6361, 2773, 'r', 2627, 'F', 's', '5673', 'Q', '163', '591', 'G', 'm', 't', '7069', 'c', 'o', 't', 'q', '5595', 'D', 'f', 7923, 3733, 5271, 4083]

A: F, s, 5673, Q, 163, 591, G, m, t, 7069, c, o, t, q, 5595, D
****
Q: [8565, 'O', 7537, '1033', 'A', 'a', '3673', '3775', 'P', 4993, 'S', 'O', 9299], ['X', 9521, '1033', 'A', 'a', '3673', '3775', 'I', 't', 'M']

A:
1033, A, a, 3673, 3775
****