@Ashley
The simple idea is that you would like to apply the same ratio to both width and height. A ratio is a number by which you multiply.
For example, if you want the image twice as big, you would multiply by 2 both width and height.
Now if you want a certain width for example, you can compute the ratio (new width / current width) and apply it to the height as well.