In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9815, 'O', 'O', 'i', '8761', '917', 'h', 'S', 'T', '8825', '1019', 'N', 'w', 'X', 5403, 9041], [3915, 'X', 'i', '8761', '917', 'h', 'S', 'T', '8825', '1019', 'g', 'O', 2401]