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

[EX Q]: ['R', 't', 'y', '2887', 'x', 4883], [5691, 9457, 'y', '2887', 'u', 'Y']
[EX A]: y, 2887

[EX Q]: [4839, 2307, '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'J', 'h', 'k', 'P'], [2615, 't', 5171, 'V', 'q', '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'p', 5261, 3251]
[EX A]: 5609, V, s, 7059, N, 3761, i, 161, 1987, N

[EX Q]: [3505, 2831, 'm', 'G', 'q', 'A'], ['x', 'O', 'm', 'G', 'F', 'I']
[EX A]:
m, G