A family eats at a restaurant. The bill is $42. The family leaves a tip and spends $49.77.



How much was the tip in dollars?