The bugs ate enough plants for there to be 30-20=<<30-20=10>>10 left.
They were still full and only ate half, leaving 10/2=<<10/2=5>>5 plants left.
Later on, the bugs only ate 1 more which left 5-1=<<5-1=4>>4 plants in the garden.
#### 4