Under what circumstances can both sides of the equation multiply or divide by an unknown number

Under what circumstances can both sides of the equation multiply or divide by an unknown number

It's OK in any case, but it can't be zero in the same division