since the agency will pay on 15 % commission basis, so the money the agency should pay to the publication can be solved:
by first let y the money the agency will pay to the publication
and x be the sales of the agency
so the money the agency will pay is:
y = 0.15x + 300