In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2645, 3907, 'p', '8793', '3735', 'P', 7137, 7983], [4279, 'M', 9955, 'p', '8793', '3735', 'b', 1795]