In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6775, 'a', 'D', '1749', '8681', '5197', 'b', 4293, 'z'], [6985, 2673, 8837, '1749', '8681', '5197', 'T', 'a']