In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5553, 'u', 2201, 'y', '831', '3017', '5203', '7439', '7331', 'r', 'n', 5115, 'q', 'B'], ['h', 'M', 4531, 'U', '831', '3017', '5203', '7439', '7331', 'r', 'P', 'T', 'Q', 4129, 8161, 'A']