Extract the Coefficients of a Linear Equation
Python 2, 55 bytes



j=1j
c=eval(input().replace(*'xj'))
print c.imag,c.real


Try it online!

Uses Python's built-in code evaluation. The input is formatted like a complex number by replacing x withj, Python's complex unit. Because only literals like 2j are recognized, but not j or -j, the variable j is assigned as 1j to cover those.

Unfortunately, Python doesn't seem to have a built-in to convert a complex number to a pair of reals.