Answer
$d = 2.10~m$
Work Step by Step
To be exactly out of phase at the detector, the path difference should be $1.00~\lambda$, since the reflection shifts the sound wave by $0.500~\lambda$
Then the path length from the source to the flat surface must be $\frac{L}{2}+\frac{\lambda}{2}$:
We can find the distance from the source to the flat surface:
$\frac{L}{2}+\frac{\lambda}{2} = 5.00~m+\frac{0.850~m}{2} = 5.425~m$
We can find $d$:
$d = \sqrt{(5.425~m)^2-(5.00~m)^2} = 2.10~m$