We are given
length of rectangular yard is x
so, [tex]L=x[/tex]
width of rectangular yard is
so, [tex]W=2x^2-98x+5[/tex]
We are given
the length of the enclosed yard is 50 feet
so, we get
[tex]L=x=50[/tex]
now, we can plug x=50 and then we can find width
[tex]W=2(50)^2-98(50)+5[/tex]
[tex]W=105[/tex]
now, we can find total fencing length
so, total fencing length is
[tex]=2L+2W[/tex]
now, we can plug values
[tex]=2\times 50+2\times 105[/tex]
[tex]=310feet[/tex]
now, we are given
the cost of fencing is $13 per foot
so,
total cost = (cost of fencing)*(total fencing length)
we can plug values
[tex]C=13\times 310[/tex]
[tex]C=4030[/tex]
So, Janice will spend $4030.........Answer