Given a right triangle with aspect ratio Ra : Rb and hypotenuse length C, calculate the side lengths A and B.

This can help you calculate a screen's width and height. Put the monitor size (ex. 24") as C, and the aspect ratio as Ra : Rb (ex. 16:9).