I really don't understand this concept. My book explains this in a confusing fashion.

How exactly does this system work? How does hex 0xff equal 255?

Or oct 011 equal 9??