Answer :
It helps to visualize the awning as a line whose rise is the height of the window and whose run is how far it extends from the window's base. See the picture attached.
The slope of a line is equal to rise over run. In this case, that would be 4 over 2. You can simplify that to a slope of 2.
The slope of a line is equal to rise over run. In this case, that would be 4 over 2. You can simplify that to a slope of 2.