The cost in dollars to carpet a room that has a floor area of a square feet is 50a + 12h, where h is the number of hours it takes to lay the carpet. what is the cost of carpeting a room that has an area of 40 square feet and takes 6 hours to lay the carpet?