In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [7527, 'l', 3101, 'O', 9369, 7431, 'B', 9823, 8853, 'r', 'x', 3809, 'O', 9727, 'l', 'H', '5155', '761', 'T', '3657', 'U', 'V', 'Z', 'l', 'S', '7359', '5413', '6501', 'M', '1181', 'N', '1449', 'w', 'Q', 'Z', '1409', 'D', 'e', 'G', 'Q', 'i', 'n', 887, 'L', 2931, 'n', 'u', 8617, 'N', 8571, 2719, 591, 'K', 4211, 9927, 'd', 'o', 841], [1349, 217, 'z', 5325, 1161, 2469, 'j', 'U', 2241, 'E', 3981, 3763, 6801, 4347, 8985, 5733, '5155', '761', 'T', '3657', 'U', 'V', 'Z', 'l', 'S', '7359', '5413', '6501', 'M', '1181', 'N', '1449', 'w', 'Q', 'Z', '1409', 'D', 'B', 'z', 6589, 'w', 'm', 963, 1719, 9297, 2245, 3587, 495, 'v', 6863, 6503, 'd', 609, 'N', 'W', 545, 5139, 973]
A:
5155, 761, T, 3657, U, V, Z, l, S, 7359, 5413, 6501, M, 1181, N, 1449, w, Q, Z, 1409, D