In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9009, 3697, 1013, 'i', 'L', 6467, 1331, 521, 'h', 3301, 'M', 'U', 7791, 'b', 643, 6421, 'd', '1625', '7401', '5315', 'w', 't', '5657', 'F', '7051', 'u', 'J', '8693', 'n', '3435', 'm', '1751', '195', 'g', 'j', 'm', 'M', 5869, 'n'], [8217, 6169, 'd', '1625', '7401', '5315', 'w', 't', '5657', 'F', '7051', 'u', 'J', '8693', 'n', '3435', 'm', '1751', '195', 'g', 'j', 'e', 'M', 3, 's', 9597, 'q', 'Q', 'x', 'h', 221]