In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['P', 'R', 'X', 2499, 9205, 'a', 'g', 'S', 'X', '6113', 'e', 'T', 'm', 8353], [9351, 'k', 'b', 'z', 'h', 'g', 'S', 'X', '6113', 'e', 'T', 'D', 8823, 'm']