I need help with this practice I am having trouble solving it The subject is trigonometry from my ACT prep guide

Remember that the range of the parent function csc(x) is:
[tex](-\infty,-1\rbrack\cup\lbrack1,\infty)[/tex]If we apply a vertical stretch by a factor k, the function becomes:
[tex]\csc (x)\rightarrow k\cdot\csc (x)[/tex]And the range becomes:
[tex](-\infty,-k\rbrack\cup\lbrack k,\infty)[/tex]If we then apply a vertical shift by c units, the function becomes:
[tex]k\cdot\csc (x)\rightarrow k\cdot\csc (x)+c[/tex]And the range becomes:
[tex](-\infty,-k+c\rbrack\cup\lbrack k+c,\infty)[/tex]Then, we can identify the endpoints of the interval with the given range:
[tex](-\infty,-9\rbrack\cup\lbrack5,\infty)[/tex]So:
[tex]\begin{gathered} -k+c=-9 \\ k+c=5 \end{gathered}[/tex]Solving the system of equations yields c=-2 and k=7. Replace these values into the transformed function:
[tex]k\cdot\csc (x)+c=7\csc (x)-2[/tex]On the other hand, two consecutive asymptotes of the parent function are x=0 and x=π. Apply a horizontal stretch by 2 units to get the equation of the described cosecant function:
[tex]7\csc (x)-2\rightarrow7\csc (\frac{x}{2})-2[/tex]Therefore, the equation of the described cosecant function is:
[tex]7\cdot\csc (\frac{x}{2})-2[/tex]