How are the page number and offset numbers obtained?

Logical address is split into two parts: right-hand bits give the offset numbers, and left-hand bits give the page number.