If two triangles have congruent bases, then the ratio of their areas equals the ratio of
A. their perimeter
B. their sides
C. the lengths of their altitudes
D. none of the above