Final answer:
Perseus borrowed the cap of invisibility from Hermes in Greek mythology to complete his task of slaying Medusa.
Step-by-step explanation:
The cap of invisibility given to Perseus in Greek mythology was borrowed from Hermes, the messenger of the gods and commonly associated with the winged sandals. When Perseus received his task to slay Medusa, Hermes lent him his winged sandals, which allowed Perseus to fly over Medusa and cut off her head without looking at her directly. The cap of invisibility was not borrowed from any specific god.
Learn more about The cap of invisibility borrowed by Perseus in Greek mythology