Simultaneous equations in 3 unknowns