Answer:
6 in
Step-by-step explanation:
Let x = the side length of the original square.
They removed 3 in from each side of the original square, so the side lengths of the remaining square are x - 3 in.
The area of the smaller square is (x - 3)².
The area of the original square is x²
I assume the area of the smaller square is ¼ that of the original square. Then
1. Solve for x

2. Calculate the side length of the smaller square
(a) x = 2
Side length = x - 3 = 2 - 3 = -1 in.
IMPOSSIBLE. You can't have a negative side length.
(b) x = 6
Side length of smaller square = 6 - 3 = 3 in.
Side length of original square = x = 6 in
Check:

OK.
Let
x---------> the length side of the rectangular area
y---------> the width side of the rectangular area
we know that
the area of the rectangle is equal to

-----> equation 
The perimeter of the rectangle is equal to

but remember that the fourth side of the rectangle will be formed by a portion of the barn wall
so
-----> equation 
<em>To minimize the cost we must minimize the perimeter</em>
Substitute the equation
in the equation 
![P=x+2*[\frac{200}{x} ]](https://tex.z-dn.net/?f=%20P%3Dx%2B2%2A%5B%5Cfrac%7B200%7D%7Bx%7D%20%20%5D%20)
Using a graph tool
see the attached figure
The minimum of the graph is the point 
that means for 
the perimeter is a minimum and equal to 
<u>Find the value of y</u>



The cost of fencing is equal to

therefore
<u>the answer is</u>
the length side of the the fourth wall will be 
The answer to this question is c. Hope I was able to help
W +Y =5000
20/100 x W= 30/100 X Y
W/5=3Y/10
10W=15Y
W=15Y/10=3Y/2
3Y/2+Y=5000
3Y+2Y=10,000
5Y=10,000
Y=2000
AND HENCE W=3 x2000/2=3000