They left 20% of the total bill as a tip
Here, we want to calculate the percentage of the bill they left as a tip
Mathematically, we have this as;
[tex]\begin{gathered} \frac{tip}{\text{total bill}}\times100\text{ \%} \\ =\text{ }\frac{6}{30}\times\text{ 100 \%} \\ \\ =\text{ }\frac{100\text{ \%}}{5}\text{ = 20 \%} \end{gathered}[/tex]