Since a(x+b)=3x+12 for all x, then ax+ab=3x+12 for all x. Since the equation is true for all x, then the coefficients on the left side must match the coefficients on the right side. Therefore, a=3 and ab=12, which gives 3b=12 or b=4. Finally, a+b=3+4=7.
Source: Omni-MATH,
licensed Apache-2.0.
Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.