I have no idea which example 1 you are asking about (many chapters have an example 1) – which chapter are you referring to?
If you are referring to the example in Chapter 4, then the market capitalisation is calculated by multiplying the total earnings (profits available for shareholders) by the PE ratio.
The share price is calculated by dividing the market capitalisation by the number of shares.