Application of simultaneous equations in two variables