By definition, when two solids are similar, their corresponding measures proportional.
In this case you know that pyramids are similar. Therefore, you can set up the following ratio for the heights:
By definition, if two solids are similar (in this case you have two pyramids), then the ratio of their volumes is equal to the cube of the ratio of the corresponding measures (in this case the measures are the heights). Therefore, this is:
You can also write a ratio in this form:
The answer is: