is it possible to get an ability score of 30 or more an any way? how?

I have noticed spellcasters ability to get bonus spells from having a high ability score depending on class (wisdom for clerics and paladins, intellgence for wizards, charisma for bards and sorcerers, I forgot about druids and rangers). Well, what I want to know is, is there a way for someone to get one of their scores up to 30? That includes temporary affects such as spells (ones that aren’t permanent, but ones that are count too of course) and items of any type that could raise that one score. If you can find a away for any of them, that works, but it would be great for someone to find a way to do so for all three (I do know that the solutions would be similar, but different for each score). If you can’t find a way for those scores to get up to 30 but you do have one for strength, dexterity, or constitution, that work too.