Afarmer decides to enclose a rectangular garden, using the side of a barn as one side of the rectangle. Wht is the maximum area that the farmer can enclose with 100 ft of fence? What should the dimensions of the garden be to give this area.

I got 25. Is this correct.

The question asks for dimensions(plural). You've only posted one number.

It is 50 and 25

You partially answered the question.

It asked for the dimensions, so you need a length and width of the rectangle.
You are correct to say that the width must be 25 feet. but what is the length ?

i am not quite sure.I am having a difficult time with this one.

50 and 25 are correct

it should be written as ( 5ft x 10 ft) and (5ft x 5ft)...is that correct?