In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[4959, 'O', 's', '6007', 'N', '9633', 'T', 3047], ['c', 9005, 's', '6007', 'N', '9633', 'w', 4323, 7077, 9275]