In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3937, 7747, 'E', 8735, 6397, 'e', '7867', '1739', '2517', '4517', '8945', 's', 'd', '4715', 'f', 's', 'I', 'F', 4877, 'n'], ['v', 'J', 167, 'g', 'S', 'p', 2393, 6837, '7867', '1739', '2517', '4517', '8945', 's', 'd', '4715', 'P', 'b']