A) To fence the squere, we have to calculate the perimeter of the figure so first we have to calculate the side of the square, so we can use the trigonometric identity of sin so:
and we solve for x so:
Now the perimeter will be:
Now the cost will be the perimeter times the cost per foot so:
B) The are of the pasture will be the addition of the area of the squate plus the area of the triangle so: