solve the problem 019 and 020.
solve the problem 021 and 022