Hello there!
First off, I appreciate you asking for the steps so you can fully understand how to conclude this because you can't use Brainly on a test - it won't be useful whatsoever then..
But i'm here and ready to help !
So a rectangle has four sides, two sides are bigger than the other two.
Draw a rectangle.. write 13 on the two longer sides of the rectangle then write 7 on the other two shorter ones. Then add them all up and there you go your answer!
Our equation would be 13 + 13 + 7 + 7 = 40 inches
Do not forget your label!!
Hope this helped you!