Cost Calculation Word Problem