In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['h', 'M', '7991', 'C', '7779', '8159', 'C', 'h', '3847', '6681', '6693', '2417', '4565', 'J', 'O', 'E', 8387, 6775, 'U', 3731, 'S'], [8269, 8177, '7991', 'C', '7779', '8159', 'C', 'h', '3847', '6681', '6693', '2417', '4565', 'W', 'h', 'h', 'w', 'f', 'x', 'l']