solve the problem 023 and 024.