In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['H', 8311, '3801', 'O', 'M', 'm', 'T', '8609', 'L', 'n', 'X', 'h', 'c', 9197, 3351, 7809, 5787, 6187], ['q', 'I', 917, 'P', '3801', 'O', 'M', 'm', 'T', '8609', 'L', 'n', 'l', 3885, 7761, 'F', 'C', 3789, 'e']