solutions for problems 2 problems