If we are talking about a flat tax rate, it means that it will apply equally in all amount of the personal income.
This means that if we apply this tax rate to the total, we should end up with the total collected.
Let r be the tax rate, then:
[tex]\begin{gathered} (347\, billion)\cdot r=8.66\, billion \\ r=\frac{8.66billion}{347billion} \\ r=\frac{8.66\, \cancel{\,billion}}{347\cancel{\,billion}}=0.024965\ldots=2.4965\ldots\%\cong2.5\% \end{gathered}[/tex]Thus, the tax could have been 2.5%.