In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8211, 4287, 'Q', 'd', 'J', 'T', 'n', 'E', 'H'], ['h', 8021, 't', 'd', 'J', 'T', 'n', 'X', 2849, 4237, 1681]