We're almost there! We have three relations between our unknowns, the radii p, q and r. Actually, let's write them in the general setting, with any height.
Set SO = h and ON = k (so the number b in the problem so far has been equal to k/h). Repeating what we've done in previous steps, and substituting q and r in the final equation so that we get an equation with just p (I've done it so you don't have to), this is what we're solving:
The plan is simple: get p with the last equation, deduce q then r with the first two. The execution of the plan... not so simple. That last equation is messy. Let's tidy it up a bit by noting that it is actually a polynomial equation of the variable x=squareroot(2p):
There are formulas for the solutions to an equation like this, but if we can avoid using them, we'll be happy.
Here's what I did - and you can do too: a numerical test. Let's take the simplest dimensions for a right triangle, h = 4 and k = 3. Replace in the last equation and notice an obvious solution. Deduce p, then q, then r. Jubilate - until you realise something is very, very wrong...