Mr. Richmond is the volunteer coordinator for a company that puts on running races. Last year, the company organized 10 short races and 7 long races, which required a total of 1,001 volunteers. This year, the company organized 5 short races and 7 long races, which required 791 volunteers in total. How many volunteers does each type of race require?