system of three equations