his daughter Marley's idea to help other people
Option B.
Step-by-step explanation:
Michael Megonigal decided to pay for other shoppers groceries because it was the idea of his daughter whose name was Marley to help the other people.
Agreeing to the idea of his own daughter, Michael agreed to pay for the groceries of the other people and do good for the other people by feeding them.