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

[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']
[A]: 299, y, U, n, x


[Q]: ['J', 'h', '8587', 'b', 't', 'k'], [8955, 7253, '8587', 'b', 'e', 8655]
[A]: 8587, b


[Q]: ['s', 'p', 8163, 2875, 3239, 'Z', 'q', 'W', 171, 'Q', 4859, 3353, 'h', '2279', 'a', 'Y', '6097', 'F', '5935', 'H', 'U', 's', '6561', '8555', 'U', '3469', '1367', 'S', '8071', 't', 'B', 'a', 5405, 'C', 4801, 'w'], ['n', 'F', 'j', 6215, 39, 'v', 'h', '2279', 'a', 'Y', '6097', 'F', '5935', 'H', 'U', 's', '6561', '8555', 'U', '3469', '1367', 'S', '8071', 'B', 9917]
[A]:
h, 2279, a, Y, 6097, F, 5935, H, U, s, 6561, 8555, U, 3469, 1367, S, 8071