We could distribute first, but it will get a bit messy.
−31(x−38x)=−5
−31x+98x=−5
Depending on how you like to deal with fractions,
Fraction arithmetic
−31x+98x=−5
−93x+98x=−5
95x=−5
x=−5(59)
Multiply each term by the least common denominator
−31x+98x=−5
(9)(−31x+98x)=(−5)(9)
−3x+8x=−45
5x=−45
x=−545
x=−9
Deal with the outer fractional coefficient first by multiplying both sides by −3.
−31(x−38x)=−5
(−3)(−31(x−38x))=(−5)(−3)
x−38x=15
Again, we have two choices for how to deal with these types of equations.
Fraction arithmetic
x−38x=15
33x−38x=15
−35x=15
x=15(−53)
Multiply each term by the least common denominator
x−38x=15
(3)(x−38x)=15(3)
3x−8x=45
−5x=45
x=−545
x=−9