I would like to have a formula to calculate the $x,y$ coordinates of a point "$B_2$" on the hypotenuse of a right triangle, given the angles "$b$" and "$a$" or the length of line $A-B_2$: see the triangle diagram here.
From this similar question, I have been able to calculate this point when the opposite and adjacent legs are equal, by using the formula $$ x = \frac{\sin(a)}{ \dfrac{\sin(135-a) }{ y}}=\frac{y\sin(a)}{ \sin(135-a) } $$
However, I also want to find this point when both "$a$" and "$b$" angles vary in the range of $0°$ to $90°$, and I have not been able to figure out how to change this formula to accommodate two varying angles.
Please help!
Edit: The main goal is to be able to use the coordinates of B2 to locate geometry, i.e. drawing a line from C to B2, or a polygon or ellipse centered at B2, and the way I want to control where B2 is located on the hypotenuse is by changing angles b, and a. If I have to calculate the location of point B2 by locating it at a distance x from A with sin/cos, that’s okay also.

