A group of friends went to lunch. The bill, before sales tax and tip was $35.55. A sale tax of 6% was added. The group then tipped 15% on the amount after the sales tax was added. What was the amount, in dollars, of the total cost?