With a similar triangles
With a equation of second degree