First things first: Tails isn't a playable character in Super Smash Bros. Brawl, so there's no way to unlock him. However, Sonic the Hedgehog is available, and you can add him to your roster by completing Classic mode 10 times.
Be prepared for a challenge, though. Sonic is tough to beat on such a demanding task: he jumps very high and hits hard, so you'll want to show no mercy if you hope to come out on top. Good luck, you'll need it!
Stick with it across your ten Classic runs, and the speedy blue hedgehog will be yours to play.