To solve this problem you must apply the proccedure shown below:
You have of a page of advertisements for every pages in the magazine and the it has pages. Therefore, you must multiply the total pages by and divide the result by pages.
Then:
number of pages of the magazine are advertisements