Forming simultaneous linear equations