Solve for n m/x=p/n