How do you write the following as an algebraic expression using x as the variable: three times the cost for 1 hat?