In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7401, 'g', '5895', 'Y', '3961', 'r', '7377', '8565', '2937', 'H', '1135', 'F', '871', 'o', 'A', 's'], [5183, 'Y', 't', 'g', 'y', 4905, '5895', 'Y', '3961', 'r', '7377', '8565', '2937', 'H', '1135', 'F', '871', 'e', 'L', 'h', 'f', 6477, 'a', 7147, 6873, 3131]