In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7917, 5343, 'N', 'A', 'Q', 'z', 'N', '4387', 'r', 'r'], ['K', 'B', 'O', 'Q', 'z', 'N', '4387', 'K', 'j']