Solve problems 6-8