Take another look at the sentence:
The nails were admired by Madeline painted pink with gold sparkles.
Painted pink with gold sparkles, a participle phrase, is right behind Madeline, an illogical target. Really, aren't her nails a more appropriate target for that modifier? Before you continue, review the rules for misplaced and dangling modifiers.
Go back to the sentence to try again.