In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'M', '829', 'P', 'w', '8293', 'B', 'b', '2839', 'J', '5107', '2633', 'K', 'F', 105, 'q', 'f', 1513, 'f', 569, 'v', 'B'], [6247, 7541, 'I', 2371, 603, 4141, '829', 'P', 'w', '8293', 'B', 'b', '2839', 'J', '5107', '2633', 'A', 'N', 5287, 'm', 5031, 'f', 'B', 'L', 847, 9159]