In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['D', 'x', 'X', 'R', '5517', 'q', '7783', '8837', 'N', 7249, 2097, 'j', 'v'], [5047, 'M', 1995, 8283, 's', 'R', '5517', 'q', '7783', '8837', 'r', 'N', 9375, 6455, 'Z']