Source: https://blogs.ac-normandie.fr/ecole-des-roseaux-carentan/public/CM_Guerin/maths/exercices_perimetre_carre_et_rectangle_pr_le_18_et_19_mai.pdf