Calculating values for compositions of trig and inverse trig functions using their domain and right triangles