Ahab had a summer job that paid $9 an hour and he worked at most 31 hours every week. If x is the hours he worked in a week and y is the money he made in a week, write the domain and range of the function as compound inequalities. ​