In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['b', 1655, 'c', 'U', 'g', '945', 'P', '6291', 'E', 'g', 'V', 'X', 6259, 'h'], [5857, 'm', 5521, 'g', '945', 'P', '6291', 'E', 'g', 'H', 'F', 9971, 'm', 8305]