In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7917, 7685, 3855, 'U', '5751', '5843', 'd', 9733], [4071, 2809, 4065, 'U', '5751', '5843', 'n', 'm', 'S']