In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'H', 2485, 'm', 'm', 7057, '5949', 'S', '3789', 'O', 'q', 'T', 'S', 'l', 3421], [4151, 355, 9071, 5329, 3193, '5949', 'S', '3789', 'O', 'q', 'T', 'S', 'h', 'z', 'F']