Final answer:
To calculate the amount of wallpaper needed, use the formula (length + width) * height - area of doors. For the family room, the expression is (3X + 3X) * X - 3 * 7. For the living room, the expression is (5X + 3X) * X - 2 * (3 * 7).
Step-by-step explanation:
To calculate the amount of wallpaper needed for the family room, we need to find the area of the walls. The length and width of the family room are both three times the height of the room, so the length is 3X and the width is 3X. The total area of the walls is (length + width) * height - area of the door. Substituting the given values, the expression is (3X + 3X) * X - 3 * 7.
For the living room, the length is 5 times the height, and the width and height are the same as the family room. So the area of the walls is (length + width) * height - 2 * area of the doors. The expression for the living room is (5X + 3X) * X - 2 * (3 * 7).