Answer: D. Percy Bysshe Shelley
Mary Shelley's husband was none other than Percy Bysshe Shelley. They are both writers, though Mary wrote novels whereas Percy wrote poems. Naturally, the two supported each other in their literary efforts and found inspiration in their daily discussions. One conversation in particular between Lord Byron and Percy was about the subject of Galvanism, and Mary was drawn into it after overhearing them speak. Mary was intrigued by the idea of Galvanism (which is the process of using electric current to stimulate muscle movement), and she was inspired to write a short story. When she showed her work to Percy, he encouraged her to continue writing, expanding her short story into a full novel. The idea that someone could be caused to move simply by electricity gave her the idea to create a fictional monster, born of this technique. Today, we know this monster as "the creature," from Mary's novel Frankenstein.
Hope this helps!