Answer :

[tex]\begin{gathered} \text{tip}=49.77-42=7.77 \\ \text{Percentage of the bill=}\frac{7.77}{42}=0.185 \end{gathered}[/tex]

Percentage of the bill = 0.185*100=18.5%