In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7805, 'T', 5227, '9723', '8775', '1701', 'g', '181', 'r', 'M', 'h', 'z'], ['C', 'x', '9723', '8775', '1701', 'g', '181', 'r', 'P', 'B']