In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 2505, 8699, 5651, 'S', 'f', 't', 'F', 'z', 'f', 'x', '577', '325', 'U', 'J', 'h', 5897, 4983, 5603], ['y', 'R', 't', 'F', 'z', 'f', 'x', '577', '325', 'U', 'J', 'E', 'S', 'W', 3625, 'Q']