As for installing OS 9 on something like a used G5-based Mac, that's a good question. I usually try and stay away from used systems that don't have the discs, especially something that couldn't boot into OS 9. Still, you could probably just purchase a copy from a place like AppleRescue.
http://applerescue.com
http://applerescue.com