Geometry of linear equations