In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7001, 9277, 'D', 'O', 'F', '5769', 'i', 'd', 'I', 'w', 'z', '271', 'h', 2779, 5163, 'o', 'c', 87, 3651], [1567, 'L', 'z', '5769', 'i', 'd', 'I', 'w', 'z', '271', 'I', 'f', 783, 1647, 3155, 9751]