In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8779, 8771, 5381, 2709, 'A', 1483, 'Z', '5743', 'D', '543', 'r', '6317', 'r', '187', '4197', '9967', 'r', '1453', '2833', '7975', 'z', 2007, 'i', 9253, 'B', 4289], [3923, 3341, 'I', 1143, 'D', 'j', 3837, 4701, 'd', 'Z', '5743', 'D', '543', 'r', '6317', 'r', '187', '4197', '9967', 'r', '1453', '2833', '7975', 'L', 'g', 'l', 8989, 3607, 'E', 3273, 3531, 3889, 9563, 9701]