8th grade students held a fundraiser dinner. they paid a flat rate of $125 for the use of a building plus $13 for each student who attended. the total cost was $944. how many students attended?