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

[EX Q]: [3277, 9365, 4973, 'q', 'S', 6337, 3661, 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'l', 'w', 5939, 6533, 'h', 1877, 10017, 'q'], ['L', 8235, 'n', 'Q', 'J', 'c', '3205', '2707', '1869', '1285', 'z', 'c', 'O', 1591, 'C', 2553, 2613, 'E', 3577, 'u']
[EX A]: Q, J, c, 3205, 2707, 1869, 1285, z, c

[EX Q]: ['R', 'Q', 'Q', 'e', 'C', 'U', 'T', '7509', '8471', 'S', 407, 793], ['G', 'D', 'C', 'U', 'T', '7509', '8471', 'l', 'r', 7861, 6959, 1617]
[EX A]: C, U, T, 7509, 8471

[EX Q]: [3305, 'E', 4717, 4849, 9323, 5853, 2707, '6061', 'P', 'E', '499', 'W', 'I', '6899', 'Q', 4153, 'O', 4565, 'l', 'I', 'M'], [8661, 'h', 'Z', '6061', 'P', 'E', '499', 'W', 'I', '6899', 'Y', 4383, 9981, 11, 7341, 'Q']
[EX A]:
6061, P, E, 499, W, I, 6899