In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['R', 'J', 'M', 5293, 1107, 'O', 'g', '6733', '2295', '9645', 'Q', '9663', 'Q', 'i', 123, 'h', 'h', 'o', 5889], [1907, 7779, 'i', 5795, 'O', 'g', '6733', '2295', '9645', 'Q', '9663', 'X', 'g', 'u', 985, 9641, 5525]