In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8131, 8393, 5661, 'r', '8729', '317', '1281', '8341', '9947', '2945', '867', 'C', 'D', 'N', '2175', '5973', 'A', 1295, 1977, 1363, 2765, 'H', 'f', 'J'], ['f', 6789, 'u', 'i', '8729', '317', '1281', '8341', '9947', '2945', '867', 'C', 'D', 'N', '2175', '5973', 'i', 9277, 6077, 3871, 'p']