In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9643, 9917, 6873, 'Q', 6293, 7345, 163, 4305, 'f', 5165, '4263', '5051', 'f', '9495', '9769', 'g', '1005', 'w', '695', '3729', '7011', '6833', 'm', 'l', 'B', 3963, 8461, 5621], [5809, 7615, 'q', 'R', 'l', '4263', '5051', 'f', '9495', '9769', 'g', '1005', 'w', '695', '3729', '7011', '6833', 'm', 'l', 'g', 6055, 'i', 9039, 5211, 4149]