The dimensions (width and length) of room1 have been read into two variables: width and length 1. The dimensions of room2 have been read into two other variables: width and length 2. Write a single expression whose value is the total area of the two rooms.

Respuesta :

Answer:

width * (length1 + length2)

Step-by-step explanation:

Hi!

If the dimensions of the room1 are width1 and length1, the area of the room1 is width1 * length1

Analogously for the room2, its area is width2 * length2

Therefore the total area is

(width1 * length1)+(width2 * length2)

however, if width1 = width = width2, the total area could be simplified:

(width * length1)+(width * length2) = width * (length1 + length2)