In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['M', 'I', 'I', 'J', 'h', 4665, 9295, 407, 't', '1775', 'w', '9371', '727', 'q', '8975', '5', '8891', 'h', 'u', 'y', 3731, 'D', 't', 473, 8849, 4503, 9369, 'X', 6819, 'H'], [5351, 1689, 't', '1775', 'w', '9371', '727', 'q', '8975', '5', '8891', 'h', 'u', 'a', 'L', 5271, 'u', 'k', 'p', 'm', 'U', 'B', 4899, 'B']