the fourth question's solution