To find the distance \( d \) between the two houses, we can use the fact that the triangles are similar.
Let's denote the points as follows based on the information given:
- Triangle ABE has vertices A, B, and E.
- Triangle CDE has vertices C, D, and E.
According to the problem:
- Triangle ABE has a right angle at A.
- Triangle CDE has a right angle at E.
- Angles ABD and ECD are congruent, which means triangles ABE and CDE are similar.
From the problem, we have:
- \( AB = d \)
- \( CE = 50 \)
- \( BC = 127 \)
- \( CD = 300 \)
Since the triangles are similar, the ratios of the corresponding sides are equal:
\[ \frac{AB}{CE} = \frac{BC}{CD} \]
Substituting the known values into the equation:
\[ \frac{d}{50} = \frac{127}{300} \]
Now, we can solve for \( d \):
Cross multiplying gives us:
\[ d \cdot 300 = 127 \cdot 50 \]
Calculating \( 127 \cdot 50 \):
\[ 127 \cdot 50 = 6350 \]
So, we have:
\[ 300d = 6350 \]
Now, divide both sides by 300 to find \( d \):
\[ d = \frac{6350}{300} \]
Calculating that:
\[ d \approx 21.1667 \]
Rounding to the nearest tenth, we find:
\[ d \approx 21.2 \]
Thus, the distance \( d \) between the two houses is
\[ \boxed{21.2} \text{ feet.} \]