You'll need to open the gate in the moat.
The lever next to the bananas will open it. The only trouble is that those bananas are blocking the lever.
Perhaps you can shoot the bananas down.
The catapult (i.e. slingshot) from the last screen will get rid of the bananas for you.