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

Q: [8521, 7389, 'Z', 959, 4009, 4683, 'y', '4295', '5675', 'a', '5585', 'q', '5785', '9081', 'U', 's', 'i', 'D', 2717, 'P', 3531, 8889], ['Y', 4689, 'H', 'h', 3485, 1659, '4295', '5675', 'a', '5585', 'q', '5785', '9081', 'U', 's', 'm', 'k', 3777, 'l', 4497, 5837, 7061]

A: 4295, 5675, a, 5585, q, 5785, 9081, U, s
****
Q: [9605, 301, 3815, '3555', '8399', '2421', '6579', 'I', 'g', 's', 'a', 'T', 'w', 7419, 1721, 3853, 5703], ['J', 1425, 3627, 3619, '3555', '8399', '2421', '6579', 'I', 'g', 's', 'Y', 'R', 4039, 'y']

A: 3555, 8399, 2421, 6579, I, g, s
****
Q: ['i', 4251, 8671, 'y', 'U', 'n', 'P', 'Y', '2729', 'j', 3775, 'M', 5689], ['y', 6173, 'U', 'n', 'P', 'Y', '2729', 'a', 633]

A:
U, n, P, Y, 2729
****