The stool leg is bounded between two parallel lines that are separated by $w$. If $m$ is the slope of these lines ($m$ is negative), then
$ y = m x + K_1 $
Substitute the point $(L , b)$, this will give
$K_1 = b - m L $
For the bottom line, its equation is
$ y = m x + K_2 $
Substitute $(L - b , 0 )$. This will give
$ K_2 = m (b - L ) $
The distance between the two lines is $w$, so
$ w = \dfrac{ - m L + b - m (b - L) }{ \sqrt{1 + m^2} } = \dfrac{ b (1 - m) } { \sqrt{1 + m^2} }$
Note the the slope is related to $L, H, a, b $ as follows
$ m = \dfrac{ b - H }{L - 2 a} = \dfrac{ a - H }{ L - b } $
These are actually two equations:
$ m (L - 2 a) = b - H $
and
$ (b - H) (L - b) = (L - 2 a)(a - H) $
These two equations are quadratic in $a, b, m $, however the first, when squared to remove the square root becomes
$ w^2 (1 + m^2) = b^2 (1 - m)^2 = b^2 (1 - 2 m + m^2 ) = b^2 - 2 b (bm) + (bm)^2 $
we need to get rid of the $(mb)$ term, and for that, note that
$ m = \dfrac{ a - H }{ L - b } $
Therefore,
$ m L - m b = a - H $
i.e.
$ m b = m L - a + H $
Substitute this, you get
$ w^2 (1 + m^2) = b^2 - 2 b ( m L - a + H ) + (m L - a + H)^2 $
Now it is quadratic.
You can solve these equations using Mathematica Online, or using SAGE
I solved using This SAGE worksheet, where $L, H, w$ are as in the example given by heropup, i.e. $L = 17$ , $ H = 9 $ and $ w = 1$. As is shown on the worksheet, the only valid solution is $ a = 0.552646 $ and $ b = 0.741606 $ and $ m = -0.51957 $.
As another example, suppose $L = 10, H = 20, w = 4$, then the solution is
$a = 1.798091, b = 3.102028, m = -2.63873 $