To find the amount of boxes, first we need to calculate the total area of the bedrooms. The area of the bedrooms is the sum of the areas of each bedroom.
The area of each bedroom is given by the product between the length of the bedroom and the width.
The area of the first bedroom is

and the area of the second bedroom is

therefore, the total area of the bedrooms is

244 ft².
To find the amount of boxes, we just have to divide the total area of the bedrooms by the area of wood in each box.

Frederico must buy 8.1333... boxes. If the store doesn't sell fractions of boxes, then he must buy 9 boxes to cover both bedrooms.