Where are the three magic beans in The Witcher 3?

Quick answer: Red is with the Big Bad Wolf, blue is at the pigs’ brick house, and yellow is in Longlocks’ tower.
Show walkthrough (quest spoilers)
Red bean — Big Bad Wolf
Enter the well and retrieve Little Red Riding Hood’s hood. Swim out, return to Syanna, and play out the scene with the wolf. Defeat him and loot the red bean.
Blue bean — Three Little Pigs
Use Aard on the brick house. Once you’re out of combat, take the blue bean from the plate where the house stood.
Yellow bean — Longlocks
Climb Longlocks’ tower and defeat the wraith. Take the yellow bean from the bed.
Plant the beans
Go to the marked field and use the planting spot. Collect Syanna’s ribbon first if you want it.
