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

[EX Q]: [9889, 'I', 'f', 'y', '3773', '4483', 'Y', '2325', 'M', '247', '8091', 'H', '3787', '3845', 'i', 'L', 't', '6949', '6019', '5929', 'm', 2573, 839, 'a', 'S', 9999, 'H', 135, 1089], ['Y', 'a', 9301, 'l', 'v', 'f', 'y', '3773', '4483', 'Y', '2325', 'M', '247', '8091', 'H', '3787', '3845', 'i', 'L', 't', '6949', '6019', '5929', 'Q', 9865, 7343, 741, 863, 'I', 'M', 'u']
[EX A]: f, y, 3773, 4483, Y, 2325, M, 247, 8091, H, 3787, 3845, i, L, t, 6949, 6019, 5929

[EX Q]: ['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]
[EX A]: h, 1181, 1631, 2605, 587, 1477, 2707, R, O

[EX Q]: [2575, 'E', '9709', '8003', 's', 'n'], [847, 9171, '9709', '8003', 'q', 'g']
[EX A]:
9709, 8003