Solve the following pair of linear equations by the substitution method: x + y = 5