In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9599, 93, 9239, 4151, 759, 'y', '6031', 'M', '185', '6711', '9419', '6977', '355', 'y', 'I', 'S', 'X', '529', 'f', 'Y', 1585, 4715, 'G', 3669, 2287, 7193, 4139, 'P', 'A'], ['G', 1349, 3017, 2049, 5971, 7019, 6185, 'N', 1211, '6031', 'M', '185', '6711', '9419', '6977', '355', 'y', 'I', 'S', 'X', '529', 'T', 'a', 8787, 7775, 'r', 5443, 865, 'f', 4061, 'A', 9979]