Problem

Source: 2020 Dürer Math Competition Finals Day2 E13 https://artofproblemsolving.com/community/c1622639_2020_

Tags: square, geometry, inscribed, inradius



In triangle $ABC$ we inscribe a square such that one of the sides of the square lies on the side $AC$, and the other two vertices lie on sides $AB$ and $BC$. Furthermore we know that $AC = 5$, $BC = 4$ and $AB = 3$. This square cuts out three smaller triangles from $\vartriangle ABC$. Express the sum of reciprocals of the inradii of these three small triangles as a fraction $p/q$ in lowest terms (i.e. with $p$ and $q$ coprime). What is $p + q$?