Markup and commission word problems