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

[Q]: ['l', 581, 4659, 2559, 'f', 'S', '1219', '6225', '515', '5369', 'w', 'V', 7431, 6195, 1731, 'J', 9541], [8813, 7733, 'n', 'a', 'h', 981, 'S', '1219', '6225', '515', '5369', 'w', 'q', 'A', 'U', 'J']
[A]: S, 1219, 6225, 515, 5369, w


[Q]: [4803, 'S', 6357, 7491, 8573, 'O', 9721, 'j', 6491, 'Y', 2083, 8345, 893, 'N', 953, '4031', 'q', 'i', '5741', 'u', '5545', 'Z', 'h', 'a', 'q', 'B', 'V', '4963', '1073', '597', 'h', 'T', '7285', 'Z', '471', '6717', '8125', '5031', 'd', 'a', 'j', 'R', 'F', 8959, 't', 2649, 'T', 6075, 'K', 2981, 'Q', 9069, 'S', 5253, 3581, 8697, 5461, 9309, 2107, 'D', 617], ['R', 'Z', 5655, 7575, 'Q', 'f', 'U', '4031', 'q', 'i', '5741', 'u', '5545', 'Z', 'h', 'a', 'q', 'B', 'V', '4963', '1073', '597', 'h', 'T', '7285', 'Z', '471', '6717', '8125', '5031', 'J', 'w', 'V', 'T', 1243, 3949, 7619, 3707, 'd', 'C', 'd', 'B', 4657, 'U', 'c', 5465, 6961, 'x', 'L', 'e', 'j']
[A]: 4031, q, i, 5741, u, 5545, Z, h, a, q, B, V, 4963, 1073, 597, h, T, 7285, Z, 471, 6717, 8125, 5031


[Q]: [4205, 901, 'x', 2661, 4789, 'L', 'K', 'L', 'w', 'V', 'M', '7595', 'Z', 'f', 'w', '8571', 'U', '9061', 'h', 'S', '9953', 'Y', 'G', '2377', '7139', '1887', '6477', 'b', '681', 'F', 'o', '8227', '3533', 'D', 4771, 3029, 'e', 4519, 343, 'M', 2679, 3761, 9203, 'D', 3437, 5083, 'k', 'D', 'l', 6195], ['b', 3891, '7595', 'Z', 'f', 'w', '8571', 'U', '9061', 'h', 'S', '9953', 'Y', 'G', '2377', '7139', '1887', '6477', 'b', '681', 'F', 'o', '8227', '3533', 'j', 7791, 667, 6037, 'X', 'D', 'c']
[A]:
7595, Z, f, w, 8571, U, 9061, h, S, 9953, Y, G, 2377, 7139, 1887, 6477, b, 681, F, o, 8227, 3533