Homework Help

can someone please explain their answer, I don't know how to determine when to use sin, tan, or cos for the formula