Algebra
Erik wants the cubby bookshelf to have a total height of

And the total width of

We are given each cubby hole in the bookshelf will have a height of

The number of cubbies that the bookshelf will be can be obtained by dividing the total height by the individual height:

That is the required rational expression for the height.