In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 1395, 'z', 'q', '3723', 'Q', 'D', 1251, 99, 3567], [1751, 'd', 1171, 'R', 'z', 'q', '3723', 'Q', 'w', 'O']