Solving first degree equation with one unknown