In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[567, 'Q', 'k', 'f', 'J', 'w', '8701', 'K', '3221', 'X', 'J', 'x', 39, 'z', 535, 2341, 6687, 'c'], [3463, 4763, 'k', 'f', 'J', 'w', '8701', 'K', '3221', 'X', 'X', 9003]