In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1807, 'X', 'P', 4105, 771, 4703, 475, 4825, 6005, 'Z', 'e', '4543', 'J', '9837', 'g', 'v', '1837', 'f', 'u', '5747', '5651', '1655', '337', 'I', 'k', 'E', 'c', 'L', 'q', 'E', 2417, 2977, 4257, 3137, 'U', 1905], ['h', 'Y', 'Z', 8601, 'w', 2763, 2871, 1551, 'C', 'I', 'e', '4543', 'J', '9837', 'g', 'v', '1837', 'f', 'u', '5747', '5651', '1655', '337', 'I', 'k', 'E', 'c', 'L', 'q', 'u', 'j', 4489, 1301, 2945]