In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 8331, 2009, 5251, '8419', '1517', 'A', '4857', '3801', 'g', '4983', 'N', 'U', 'b', 1149, 'n'], [4323, 't', 'f', 'A', 'X', 6595, 'l', 'K', '8419', '1517', 'A', '4857', '3801', 'g', '4983', 'N', 'G', 3179, 3087, 'r', 'E', 4649, 'r', 4309]