Solving simultaneous linear equations by elimination