IF dmbeluke's TITLE was correct, then this problem is impossible. If a, b, and x are all unknown numbers then we have a single equation in 3 unkowns and there are an infinite number of possible solutions.
However,cookiemonster is assuming (very likely correctly) what dmbeluke didn't say: that x is a variable and the equation must be true for all values of x. If two polynomials are equal for all x, then corresponding coefficients must be equal.
Another way to do this: since this is true for all x, choose any two convenient values of x to get two equations for a and b.
Since a(x-2)+4(5x+b)=23x-30 for all x, in particular, if we take x= 2, we get a(2-2)+ 4(5(2)+ b= 23(2)- 30
4(10+b)= 46-30 or 40+ 4b= 16.
(I chose x= 2, of course, precisely because of that "a(x-2)")
After you have found b, take x= 0 to get a simple equation for a.