In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: ['A', 1029, 2343, 8395, 8505, 6249, 'H', 5105, 'V', 'x', 'n', 'I', 't', 'z', 'D', '5107', '6573', 'G', 'e', 'k', 'i', 'Q', 'l', '7731', 'P', '4443', 'o', 'g', '8509', 'h', 'H', 'S', 4793, 'N', 9407, 'S', 9905, 'q', 't', 7081], [6535, 'L', 4873, 'p', 5733, 3779, 9387, 3395, 'v', 985, 4855, 4013, 2765, 'W', '5107', '6573', 'G', 'e', 'k', 'i', 'Q', 'l', '7731', 'P', '4443', 'o', 'g', '8509', 'h', 'H', 'M', 'f', 8607, 'F', 'h', 5227, 'Y', 5443, 'y', 'D', 5641]
A: 
5107, 6573, G, e, k, i, Q, l, 7731, P, 4443, o, g, 8509, h, H