In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['r', 's', 'j', '8597', 'W', 'c', 'h', 'm', 7675, 'f', 'X'], ['G', 4569, 9169, 'j', '8597', 'W', 'c', 'h', 'r', 'y', 905]