Bailey writes the expression g2 + 14g + 40 to represent the area of a planned school garden in square feet. If g = 5, what are the dimensions of the school garden?