Answer
$d=2cot(x)$
Work Step by Step
Step 1. Draw a diagram as shown.
Step 2. Based on the given conditions, we have $tan(x)=\frac{2}{d}$ which gives $d=2cot(x)$
Step 3. We can graph the function for $0\lt x\lt \pi$ as shown in the figure, where negative $d$ means the jet is on the other side of the house.