If you also know the actual area, substitute it in and solve for x: for example, if the area is 40 square feet, set (x + 2)(x + 5) = 40, expand, and solve the resulting polynomial equation for x. Once you have x, substitute it back into each factor to get the actual length and width.