Answer:
7 days
Explanation:
On the last day, the pet worm will climb 7 feet and reach the top without sliding back down, so the pet worm will be 30 feet high on that day.
Before that day, the worm climbs 7 feet and slides down 2 feet, meaning the worm rises 5 feet per day.
30 feet / (5 feet/day) = 6 days
It takes the worm 6 days to reach a height of 30 feet. So on the 7th day, the worm gets to the top of the well.