In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['J', 'w', 'B', 5945, 'K', 'J', 's', 'j', 'J', 'M', '4413', 'F', 'J', 'g', '5525', 'Q', 'h', 'y', 5963, 'Q'], [4625, 39, 's', 'F', 'l', 'J', 'M', '4413', 'F', 'J', 'g', '5525', 'Q', 'U', 'q', 'O', 7989, 2603]