Solving simultaneous linear equations by substitution