legnth/width for square = x
width of rectangle= x-10
legnth of rectangle=x+15
so (x-10)+25=x+15 which is the first part
part two
the perimiter of rectangle floor =130
perimiter= 2width+2legnth so 130/2=width+height
width=x-10 and legnth=x+15 so
x-10+x+15=130/2
2x+5=75
minus 5 from both sides
2x=70
divide by two
x=35 which is legnth/width of the square, but we want the legnth and width of the rectangle so
x-10=width=25
x+15=legnth=50
so the cost of the floor is (50 times 25)times $0.50 or
(50 times 25)/2 so
$525