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

[Q]: [1307, 'u', 'Z', 3323, 191, 'i', 'h', 't', 'L', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'C', 'M', 'y', 'h', 7985, 9989, 'j'], [2817, 1955, 2973, 'Y', 9221, 'z', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'G', 'M', 2083, 'O']
[A]: 8549, 7861, 9747, 3985, g, r, 1247, R, S, a, a, 749


[Q]: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]
[A]: 5001, 8571, 2343, 9471, P, 6369, 9299


[Q]: ['x', 'y', 2151, 8113, 5819, 'V', 8585, 'l', 'u', 'g', 'q', 'i', 8737, 7617, 'S', 7339, 'L', 'z', '5283', 'A', 'S', '3409', '8929', '7049', 'B', 'W', 'q', '7349', '7879', '2403', 'Z', '9869', '343', '183', '1083', '685', 'K', 'g', 'L', 'V', '9075', 'q', 9789, 1683, 7099, 'O', 6135, 'K', 'y', 'd', 6163, 'h', 5799, 6071, 'F', 'T', 'i', 'p', 5991, 5575, 9917, 979, 7635, 'm'], ['u', 'I', 469, 4001, '5283', 'A', 'S', '3409', '8929', '7049', 'B', 'W', 'q', '7349', '7879', '2403', 'Z', '9869', '343', '183', '1083', '685', 'K', 'g', 'L', 'V', '9075', 'i', 5175, 2703, 3083, 4051, 329, 6457, 3765, 4213, 'F', 'i', 2237]
[A]:
5283, A, S, 3409, 8929, 7049, B, W, q, 7349, 7879, 2403, Z, 9869, 343, 183, 1083, 685, K, g, L, V, 9075