Though KRyan's answer is absolutely correct, I'd like to elaborate on having all three stats at 30. Just for completeness. It may be impractical but it is definitely not impossible. Magic items with +6 enhancement bonus would cost you 36,000 gp per stat, +5 inherent bonus would be either 25,000 XP per stat (5 consecutive wishes) or 137,500 gp per tome (Tome of Clear Thought, Tome of Leadership and Influence or Tome of Understanding wondrous items). Thus you have +11 total to each stat. It means you need only 19 in each stat at the start. A 17 in a stat plus racial bonus can give you 19 in one of them. The rest you'll need to raise through bonus points at levelling up. 5 points at level 20 will allow you to start with 18 and 15 or 17 and 16. To sum it up you need stats at 17,17,16 or 18,17,15 before racial adjustment and either spend 520,500 gp or 108,000gp and 75,000 XP total.