You can do this in two steps. In each step, change just one of the variables to the desired final value.
If $3$ workers assemble $5$ computers parts in $3$ hours. How many computer parts it will take $9$ workers to assemble in $5$ hours.
We need to increase the number of workers from $3$ to $9$ and the number of hours from $3$ to $5.$ Choose one thing to do first.
Suppose you choose to increase the number of workers first from $3$ to $9.$ Then $9$ workers can assemble $\frac{9}{3}\times5=15$ parts in $3$ hours.
Now increase the number of hours. We know $9$ workers can assemble $15$ parts in $3$ hours, so in $5$ hours, the same $9$ workers can assemble $\frac{5}{3}\times15=25$ parts.
To do the whole thing in one equation, just apply the second ratio without first simplifying the first multiplication. So instead of $\frac{9}{3}\times5=15$ and then $\frac{5}{3}\times15=25,$ you have
$$
\frac{5}{3}\times\frac{9}{3}\times5=
\frac{5\times9\times5}{3\times3}=25.
$$