In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['i', 'A', 6087, 3953, 8721, 'g', 'c', 1867, 'P', 'q', '773', 'N', 'X', 'g', 'i', 'D', 'E', 'F', 'm', '5727', 'Q', '1577', 'L', 'n', 'w', 'd'], ['G', 'N', 'e', 'R', 3401, 1199, 'z', '773', 'N', 'X', 'g', 'i', 'D', 'E', 'F', 'm', '5727', 'Q', '1577', 'L', 'y', 'Q', 5461, 'k', 'h', 'k', 'q', 'E', 9739, 'm', 'Q']