Heather studied for 30 minutes several days in a row. Before her test, she also studied for 10 more minutes. The total amount of time she spent studying was 280 minutes. Write and solve an equation to determine how many days she studied. Let d represent the number of days.