In Petpet Park, you'll find the cannonballs inside the barrels on Captain Arf's ship.
Head aboard and check those barrels, and you should be able to collect what you need.