Dennis had 10/2=<<10/2=5>>5 rocks left after the fish ate them.
He made the fish spit two out, which left Dennis with 5+2=<<5+2=7>>7 rocks.
#### 7