In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9835, 5625, 'u', 1711, 'D', 'z', '2713', '8315', 's', 'm', 4045], ['b', 'm', 'f', 'D', 'z', '2713', '8315', 'd', 'U', 'E']