In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['C', 8595, '163', 'P', 'Z', 'E', 'O', 6315], [4907, 6965, '163', 'P', 'Z', 'E', 'C', 815, 'c', 'g']