The equation for the relation of sides of triangle can be obtained by similar triangle property.
Consider triangle ABC and triangle DBE.

Determine the ratio of corresponding sides of simillar triangle.

Thus similar triangle property is used to set up the equation.