Explanation:
Length of the room is 5 ft and the width is 8 ft.
Perimeter is equal to the sum of all sides of the room.
The shape of room is rectangle.
The perimeter of rectangular room is given by :

Area of a rectangular shaped room is given by :

So, the perimeter and area of the rug are 26 feet and 40 sq feet.