Linear Equations in Three Variables