Nevermind... got it.
I was looking over some websites that showed examples of optimization problems in hopes of getting better at them.
Here's the site.
I'm referring to example 5.
It says, "using basic right angle trig we can see that: L1 = 8secx and L2 = 10cscx"
How did they figure that out?