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

[EX Q]: ['d', 6171, 9855, 'D', 'e', '299', 'y', 'U', 'n', 'x', 'f', 2817, 7263, 2945, 'h'], [5759, 2135, '299', 'y', 'U', 'n', 'x', 'g', 2571, 'd']
[EX A]: 299, y, U, n, x

[EX Q]: ['C', 'b', 'L', 9325, 'M', 'p', 7813, 'J', '1879', 'l', '6011', '8425', '5761', '8567', '529', '3079', '2611', '9387', '909', '751', 'Q', 4393, 'x', 5071, 6297], [347, 'W', 8317, 'm', 655, 2215, 9489, 9125, 7317, 'J', '1879', 'l', '6011', '8425', '5761', '8567', '529', '3079', '2611', '9387', '909', '751', 'L', 6565, 5537, 'C', 'S', 543, 5541, 'Z', 'q', 'W', 8259, 9311]
[EX A]: J, 1879, l, 6011, 8425, 5761, 8567, 529, 3079, 2611, 9387, 909, 751

[EX Q]: ['D', 6319, 'M', 's', 'Y', '7087', '7123', 'D', 'u', 'm', '891', 's', 'p', '3883', 'C', 'y', 'G', 'C', 'c'], [2191, 'f', 5953, 9819, 'g', 'T', 'K', 'X', 'Y', '7087', '7123', 'D', 'u', 'm', '891', 's', 'p', '3883', 'C', 'y', 'G', 't', 2463, 9301, 'x', 8503, 'a', 5065, 973, 7609]
[EX A]:
Y, 7087, 7123, D, u, m, 891, s, p, 3883, C, y, G