linear system of four equations