In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['q', 9457, 'R', '9269', 'x', '4623', 'k', 1235], ['P', 9795, 'n', '9269', 'x', '4623', 'J', 't', 7989]