The book says that the missing distance is $$\frac{L}{2} - \frac{D}{2}$$
I feel like this is something simple that I should understand but I'm just having a disconnect on how they found the distance to be that.
EDIT: added more information with context of the problem
The key is that the sawhorses are equidistant from the center of the plank. Therefore the distances between each end of the plank and each sawhorse are also equal, and must be ${L-D \over 2}$.