In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9241, 'E', 5519, 'f', 'H', '2277', 'c', '1303', 'F', 'e', 'i', 'M', '2507', 'F', 'Y', '10001', 'p', '3621', 'Z', 'k', 5937], ['J', 'c', 'j', 5323, 'd', 'e', 'P', 'k', 825, 8113, 'e', 7725, 9817, 'H', '2277', 'c', '1303', 'F', 'e', 'i', 'M', '2507', 'F', 'Y', '10001', 'p', '3621', 1673, 'o', 9117, 8831, 'd', 'S']