In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8225, 'M', 2551, 9101, 3277, 'Y', '6663', 'h', '3811', '2213', 'A', 'b'], ['z', 9977, 'Y', '6663', 'h', '3811', '2213', 't', 'J', 8545]