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

Q: ['Y', 'Z', 'm', 'S', '3631', 'v', 'x', 5851, 615, 'm'], ['D', 'D', 'm', 'S', '3631', 'v', 'O', 'D']

A: m, S, 3631, v
****
Q: ['g', 305, '8447', 'K', 'y', 'D'], [2445, 5519, '8447', 'K', 't', 'l']

A: 8447, K
****
Q: [4847, 4587, 'e', 4871, '6649', '3599', 'S', 'A', 'V', '5821', '2133', 'a', 'Q', 'J', '4481', '4925', 'g', 'G', 'W', 'X', 4845, 'g', 'i', 'f', 'b', 4175, 1185], ['x', 'S', 7249, 'e', 'N', 'W', 'A', 8113, 9767, 3975, 'a', '6649', '3599', 'S', 'A', 'V', '5821', '2133', 'a', 'Q', 'J', '4481', '4925', 'g', 'G', 'K', 7711, 'm', 't', 'c', 'G', 'H', 'L', 'm', 'T', 9717, 321, 'h', 869]

A:
6649, 3599, S, A, V, 5821, 2133, a, Q, J, 4481, 4925, g, G
****
