A person can pay $8 for a membership to the science museum and then go to the museum for just $1 per visit. What is the maximum number of visits a member of the science museum can make for a total cost of $10? Write and solve an equation to find the answer.