In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7571, 'u', '8575', '7973', 'X', '5969', 'J', 'P', 'h'], [9231, 719, '8575', '7973', 'X', '5969', 'C', 'r', 'Y']