The largest number of coins is made by using all 5-cent coins. So the largest number is 35/5=7.
The smallest number of coins is made by using a combination of 25-cent coins and 10-cent coins. Note that 25+10=35 ,so the smallest number of coins is 2.
We find our difference to be 7-2=5.