a. The gym has the shape of a rectangle.
The area of a rectangle is calculated as follows:
[tex]A=\text{base}\cdot\text{height}[/tex]The base of the gym is x and its height is 15, then its area is:
[tex]\begin{gathered} A=x\cdot15 \\ A=15x \end{gathered}[/tex]b. The cafeteria is a rectangle with a height of 15 and a base of (x+3), then its area is:
[tex]\begin{gathered} A=(x+3)\cdot15 \\ \text{Distributing:} \\ A=x\cdot15+3\cdot15 \\ A=15x+45 \end{gathered}[/tex]c. The total area is the addition of the gym area and the cafeteria area.
[tex]\begin{gathered} A=15x+15x+45 \\ \text{Combining similar terms} \\ A=30x+45 \end{gathered}[/tex]d. The perimeter of a rectangle is calculated as follows:
[tex]P=2(base+height)[/tex]Considering both the gym and the cafeteria, the base is x + x + 3 = 2x + 3 units long. The height is 15, then:
[tex]\begin{gathered} P=2(2x+3+15) \\ P=2(2x+18) \\ P=2\cdot2x+2\cdot18 \\ P=4x+36 \end{gathered}[/tex]