document.write( "Question 384672: If the cost of each hat is x dollars, what is the cost of y hats? \n" ); document.write( "