Very simple problem for my daughter but we, adults, find 2 different answers I'm sorry I'm French so the subject may not be properly translated, but here's my try:
A goat lives in a rectangular place. She's tied to the point P. The length of the row is 8 meters. The problem is that she can eat flowers: it's the shaded area. The farmer doesn't want the goat to eat the flowers, so he has to strengthen the barrier. Draw the part of the fence he has to strengthen, and tell exactly how long this part will be. Measures are in meters.

I found out that I just have to draw one half circle, radius = $5$ meters (on the left), and another half radius = $3$ meters (on the right). But when calculating strengthened barrier I found different value from my wife's. How would you do? 
 A: This assumes that the area to be strengthened is some of the border between the shaded area and the white area and no new fence may be built.  The left extreme is 5 meters from the lower left corner of the hut.  So it is 3 meters to the left of the left wall of the hut.  The right extreme is 3 meters from the upper left corner of the hut, $\sqrt{3^2-2^2}=\sqrt{5}$ meters  to the right of the left wall.  The total length is then $3+\sqrt{5}$ meters.
A: Wouldn't be extending the lower edge of the hut by $1+\epsilon$ be enough?
A: Thinking like Mr. Goat :), 
Approach A:
the only way he can reach the flowers is by:
(A) going around the hut (since it is a solid structure, and assuming he can't jump it) following the blue line until he reaches point F. This is 3+4=7 M.
(B) And from that point he could either go forward, right or left using the remaining length of the rope. This is 8-(3+4)=1 Meter. This length will be consumed either in the left direction or in the right direction so it will be used once only.
The total rope length is the lengths used in (A) + (B) which is 7 M. 
The fence will be built at the red line with the length of 2 Meters, that is, 1 Meter in either directions. 
This approach is simple but not quite correct (see comment below).

Approach B
This was added as a result of the valid comment below. The following argument is for the 2nd diagram.
1 - If the Goat moves from point P, the max. distance he could cover would be along the radius of circle A bounded by the rectangle sides, the hut walls and the horizontal line L since the roap will bend at the wall of the hut at point C. This path alone will not get the Goat to the flowers.
2 - If the Goat moves from point P along the side of the hut reaching point C, then the max. distance he could cover would be along the radius of circle B bounded by the hut wall. He may then go to corner point Q. The max. distance he could cover would be along the radius of circle C bounded by the rectangle sides and the hut walls.
The flowers will act as a tangent to circle C at 1 point (theoretically) and that is where the fence should be built.

A: Place an $\varepsilon$-cm fence $\varepsilon$ cm to the left of P starting at the hut and extending downward. Then run $50+\varepsilon$ cm of fence from the bottom of the first fence toward the rightmost side of the pen.  The goat's shortest path to the flowers is then $4.5+\sqrt{9+\varepsilon^2}+\sqrt{0.25+\varepsilon^2}\approx8+\frac76\varepsilon^2.$  This requires $0.5+2\varepsilon$ m of fencing for any $\varepsilon>0.$
If the goat has nonzero diameter you can set $\varepsilon=0$, nailing the rope to the hut essentially.  If the fence has nonzero width you can actually get away with less than 0.5 m.
