A family has two cars. The first car gets 25 miles per gallon and the second car gets 15 miles per gallon. In a week the two cars went 725 miles and consumed 35 gallons of gas. How much gas did each car use?