I need help understanding how to convert the expressions so they can cancel out in order to achieve the answer

Recall the equivalent expression of each term.
[tex]cos\beta=\frac{x}{r}[/tex][tex]tan\beta=\frac{y}{x}[/tex][tex]csc\beta=\frac{r}{y}[/tex][tex]cot\beta=\frac{x}{y}[/tex]Using their equivalents, we can rewrite the expression as:
[tex](\frac{x}{r})(\frac{y}{x})(\frac{r}{y})(\frac{x}{y})[/tex]Then, multiply the variables.
[tex]\frac{x^2yr}{xy^2r}[/tex]Then, simplify by subtracting the exponents of each respective variable. The result is:
[tex]\frac{x}{y}[/tex]Since x/y is equivalent to cot β, then the given trigonometric expression is just equal to cot (β).