Right triangle relationships and trigonometry