Ratios of bases and heights in similar rectangles