8 x 5 inches.
The condition gives you this equation x*(x+3) = 40. x^2 + 3x - 40 = 0. Now apply the quadratic formula or solve equation by factoring. On quadratic formula see the lessons Introduction into Quadratic Equations PROOF of quadratic formula by completing the square in this site.