In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5809, 7197, 8693, 'x', 347, 'S', 7413, 497, 'e', 'z', 4857, 'P', 'D', '3729', '5169', '1191', '3979', 'k', '8543', '7821', '3681', '8145', '6603', 'n', 'e', 'G', 'L', 'I', '9471', 'a', '2271', 'I', 2047], ['M', 'P', 4455, 3289, 1227, 9237, 'f', 7689, 3199, 1491, 's', 8985, 'h', 'e', 'e', 3591, 'D', '3729', '5169', '1191', '3979', 'k', '8543', '7821', '3681', '8145', '6603', 'n', 'e', 'G', 'L', 'I', '9471', 'a', '2271', 'J', 5707, 'E', 9939]