In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['j', 't', 'Y', '5699', '9845', 't', 'D', 'S', 'M', 'D'], ['i', 'C', 'R', 'i', 7843, 'Y', '5699', '9845', 't', 'D', 'S', 'p', 2635, 2589]