In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8573, 2131, 9013, 'L', 'z', '2663', '7797', 'e', 'O', 'X', 777], ['q', 2635, 'e', 'z', '2663', '7797', 'e', 'c', 'K', 6475, 4081]