In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5105, 2381, 6709, 1709, 'w', 'Q', '3859', 'o', '4323', '481', 'h', '1491', 'd', 'C', 8421], [297, 2819, 6855, 2161, 'c', '3859', 'o', '4323', '481', 'h', '1491', 'f', 'w', 6545, 'H']