In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1007, 'g', '4829', '5775', 'A', 'G', 'O', 'k', 'e'], [6423, 6107, '4829', '5775', 'A', 'G', 'P', 8165, 883]