In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['K', 'C', 'V', '5287', 'W', '2307', '3247', '9919', 'm', 'D', 'h', 8729, 427, 901, 'q'], ['N', 7219, 8757, 'V', '5287', 'W', '2307', '3247', '9919', 'm', 'D', 'g', 'T', 5655, 'w']
A:
V, 5287, W, 2307, 3247, 9919, m, D