Let x be the gallons of premium. This means the regular gallons will be x + 420. Add these together to the total profit.
$${\mathtt{2.3}}{\mathtt{\,\times\,}}\left({\mathtt{x}}{\mathtt{\,\small\textbf+\,}}{\mathtt{420}}\right){\mathtt{\,\small\textbf+\,}}{\mathtt{2.55}}{\mathtt{\,\times\,}}{\mathtt{x}} = {\mathtt{10\,957}}$$
$${\mathtt{2.3}}{\mathtt{\,\times\,}}{\mathtt{x}}{\mathtt{\,\small\textbf+\,}}{\mathtt{966}}{\mathtt{\,\small\textbf+\,}}{\mathtt{2.55}}{\mathtt{\,\times\,}}{\mathtt{x}} = {\mathtt{10\,957}}$$
Now factor out the x
$${\mathtt{x}}{\mathtt{\,\times\,}}\left({\mathtt{2.3}}{\mathtt{\,\small\textbf+\,}}{\mathtt{2.55}}\right){\mathtt{\,\small\textbf+\,}}{\mathtt{966}} = {\mathtt{10\,957}}$$
Now solve for x.
$${\mathtt{4.85}}{\mathtt{\,\times\,}}{\mathtt{x}} = {\mathtt{9\,991}}$$
$${\mathtt{x}} = {\mathtt{2\,060}}$$
a)
2060 gallons of premium,
2480 gallons of regular.
b)
Profit for premium: .20 * 2060 = $412
Profit for regular: .18 * 2480 = $446.40
Total profit: $412 + $446.40 = $858.40