In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9245, 'Z', 1001, 2275, 8299, 'm', 'g', 'F', '8545', '5793', 'J', '3921', '4937', '1459', 'v', 'l', 5349, 5511, 4461, 'g'], ['n', 'I', 4311, 'C', 'p', 3029, 'g', 'F', '8545', '5793', 'J', '3921', '4937', '1459', 'v', 'k', 'M']