In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['C', 'c', 'O', 'g', 'Z', 'y', 'g', '3653', 'D', 'L', '6089', 'a', '579', '1125', 'c', 5427], [1041, 'X', 'q', 'M', '3653', 'D', 'L', '6089', 'a', '579', '1125', 2217, 'o', 8507]