The length of a rectangular frame is 3 cm more than the width. The area inside the frame is 40 square cm. Find the width of the frame