In order to buy the microscope, we plan to walk dogs after school, charging $3 per dog. To reward the dogs, we will buy a box of treats for $5 as we start the business. The price of the microscope is $254. How many dogs do the friends need to walk in order to have enough money to buy the microscope?