In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['F', 6521, 'q', 'g', 4303, 9075, 2177, 4691, 8623, 1493, 6737, '3935', '9877', '5943', 'V', 'h', '351', '2621', '3199', '8073', 'R', 'U', 'j', 'J', '8443', '3897', '1435', 'a', '3013', 'k', '7613', '5095', 'r', 'A', 'Q', 'X'], [2989, 7543, 's', 'O', 'R', 'y', 2023, 7797, 'y', '3935', '9877', '5943', 'V', 'h', '351', '2621', '3199', '8073', 'R', 'U', 'j', 'J', '8443', '3897', '1435', 'a', '3013', 'k', '7613', '5095', 'm', 2177, 6449, 5823]