the question does not present the options, but this does not interfere with the resolution
we know that
Perimeter of rectangle=2*[W+L]
where
L is the length of rectangle
W is the width of rectangle
Perimeter=18 cm
so
18=2*[W+L]-----> divide by 2------> 9=W+L
Let
x-------> L
y-------> W
then
x+y=9
using a graph tool
see the attached figure
the slope of the line is m=1
the x intercept is the point (9,0)
the y intercept is the point (0,9)