In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1883, 'L', '4189', '19', 'g', 'h', 'V', '1701', 'W', 'H', 'C', 'P', 'X', 'M'], ['n', 5367, 581, 'D', '4189', '19', 'g', 'h', 'V', '1701', 'W', 'f', 'q', 'e', 'r', 'Y', 9301]