There are a few ways of solving this but the most intuitive is probably to dissect the figure into identical triangles and then simply count them. There are 18 in the tilted square and 16 in the lower square, so therefore their areas are in a ratio of 9:8.