In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7607, 2751, 6805, '8673', '1407', 'W', '8153', 'h', 9047, 'T', 7651], ['L', 1847, 6271, '8673', '1407', 'W', '8153', 'P', 5029]