Area = 40 cm^2
Perimeter = 36 cm
So
36 = 2 (W + L)
18 = W + L
18 - L = W (1)
And
40 = L * W substitute (1) for W
40 = L (18 - L)
40 = 18L - L^2 rearrange as
L^2 - 18L + 40 = 0
Using the quadratic formula...the two solutions for L are
[9 - √41] cm and [ 9 + √41 ] cm
And depending upon which value we assign to the length, the width will be the other value [i.e., the conjugate value ]
So .....the resulting figure will be a rectangle having these two dimensions