In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7807, 'k', 'o', 4569, 8717, 'h', 'G', '4905', 'x', 'n', '2095', 'S', '3195', 'h', '931', '3987', '7925', '5985', 'A', 'w', 4035], [9241, 'w', 3309, 'h', 'v', 6219, 6913, 'K', 4077, 1565, 9221, 'p', 1771, 'G', '4905', 'x', 'n', '2095', 'S', '3195', 'h', '931', '3987', '7925', '5985', 'A', 'i', 'f', 'y', 2165, 'N', 2229]