If you walk towards the fairies, they will pretty much take control of this puzzle for you.
Just make sure you dance for them.
After you finish dancing, you will have a chance to talk to the fairies.