Let x be the distance along the ground from the 3 foot pole. The wire is the sum of the hypotenuses of the two triangles formed:
L = sqrt(32 + x2) + sqrt(42 + (5-x)2) = sqrt(9+x2) + sqrt(41 - 10x + x2)
Set dL/dx = 0 to find an extremum:
dL/dx = (1/2) * (9+x2)-1/2(2x) +(1/2)(41-10x + x2)-1/2(2x-10)
With algebra, you end up with the quadratic 7x2 +90x - 225 = 0 and x = 15/7 (the other root is negative). Check against extremes: sqrt(32 + 52) + 4 and sqrt(42+52) + 3 to see if it is a min or max.
Take care.