In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9667, 9977, 9917, 3625, 'E', 'W', 'F', 'x', 'z', 'J', 'w', '8715', '2447', 'C', '8911', 'D', 'G', '947', 'p', 'l', 'E', '5667', '7015', 'E', '4393', '655', 'u', 3897, 'x', 'C', 3471, 'i', 7245, 'y', 2625, 'B', 4415, 7023, 's', 9049, 'Y'], ['U', 'G', 'I', 7489, 'F', 9829, 2207, 1011, 7053, 'J', 'w', '8715', '2447', 'C', '8911', 'D', 'G', '947', 'p', 'l', 'E', '5667', '7015', 'E', '4393', '655', 'A', 'i']