Convert linear equations to standard form