Source: https://mrmen.github.io/cours-maths/4eme/ch3/q-ch3-pythagore-1-exercices.pdf