$$2s+3b=600; S+2b=350$$
$s=\frac{3S}{4}+\frac{75}{2}$
$b=-\frac{S}{2}+175$