Variable $x$ cannot be equal to $45$ since division by zero is not defined. Multiply both sides of the equation by $8\left(x-45\right)$, the least common multiple of $45-x,8$.
$$-8x=7\left(x-45\right)$$
Use the distributive property to multiply $7$ by $x-45$.