In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['D', 'h', 'i', 'Y', 'Z', '8575', 'K', 'x', 'F', '9701', 'c', 'i', 'r', 'o'], [5585, 8563, 'f', 3409, 'Z', '8575', 'K', 'x', 'F', '9701', 'q', 'y']