On Halloween 18 pirates came to my door to trick or treat. 9 of the pirates had cutlasses 11 of the pirates had eyepatches 3 of the pirates neither cutlasses nor eye patches. How many pirates had both cutlasses and eye patches?