Let:
T = Total
B = Bill
t = tip
The bill is $42. The family leaves a tip and spends $49.77. so:
[tex]\begin{gathered} T=B+t \\ \text{where:} \\ T=49.77 \\ B=42 \\ \text{solve for t:} \\ 49.77=42+t \\ \text{subtract 42 from both sides:} \\ t=49.77-42 \\ t=7.77 \end{gathered}[/tex][tex]\begin{gathered} 42\cdot x=7.77 \\ x=\frac{7.77}{42} \\ x=0.185 \end{gathered}[/tex]