The key shows how many apples are in each sized box.
If John has $x$x apples, which box does he have?
The key shows how many oranges are in each sized box.
A single box contains $x$x apples.