Write square of sum for problem 6.