In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 6979, 'd', 'h', 'm', 'a', 'r', '545', 'i', '9979', 'K', '2177', '9229', 'N', 9525], ['c', 5971, 'q', 'g', 2165, 'r', '545', 'i', '9979', 'K', '2177', '9229', 'R', 'F', 6599, 'l', 3125, 5661]