Fairly self-explanatory. Please note that in right triangles, c is considered the hypotenuse and sides a and b must appose their angles A and B. Otherwise, you will get an incorrect solution. The 90 degree angle is considered C.
@kc021 for ideas in the other section [4/20/22] Released, might be updated later.