guys if I have something like this:

cos(theta)/x=r can I transpose this fomula as x=r*cos(theta) - is this correct?

btw. I am trying to understand if x-adjacent r-hypothenus x=r*cos(theta) -> I want to come up to this part while taking into consideration that cos(theta)=x/r

please help me