In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'H', 'c', 9681, 'p', 3989, 'J', 'Q', '8183', '3075', '1457', 'Y', '2595', '8157', 'u', 9817, 'I', 3759, 8349, 6975, 'Y'], ['j', 'd', 'r', 'J', 'Q', '8183', '3075', '1457', 'Y', '2595', '8157', 'g', 'j']