In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 6589, '1529', 'H', '9731', '8175', 'M', 'K', 2239, 'q', 6745, 'X'], [7937, 2167, 9157, 'r', 'Z', '1529', 'H', '9731', '8175', 'M', 'B', 7111]