The local gym charges a membership fee and a price per visit. After 5 visits, Stacy had spent a total of $170; after 10 visits, she had spent a total $295. How much is the membership fee and the price per visit?

x + 10v = 295

x + 5v = 170

Subtract bottom equation from top to find v, then insert v into either equation to find x.