Complete problem 24