Pyramid is to triangle as cube is to square. This relationship shows dimension. The triangle shows one dimension of the pyramid; the square is one dimension of the cube.
The United States is to the world as a brick is to a brick house. This relationship shows part to whole. The United States is one part of the world; the brick is one part of the house.