the length of floor = x, then the width of floor = x + 4
the area of floor = x(x+4) = x2 + 4x;
the width of rug = (x+4) - 2 = x+2, the length of rug = (x+2) - 4 = x-2
the area of rug = (x+2)(x-2) = x2- 4
Therefore, the R(x) = the area of floor - area of rug = (x2 + 4x) - (x2- 4) = 4x + 4