Here's the problem and the diagram that goes with it

Fill in each n both. 

Diagram:

[![enter image description here][1]][1]

A substitute teacher provided us with this puzzle. Can you please provide an explanation of how to get to the answer?