In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[901, 2273, 8917, 7393, 'P', 'A', '5797', 'Y', 'd', '1031', 'W', 'W', 'M', 'd'], ['K', 'm', 3169, 8463, '5797', 'Y', 'd', '1031', 'W', 'W', 'a', 'j', 6983, 6213]