Hadley was going out with her friends for dinner. The equation c = x + 0.07x + 0.18x gives the total cost c of her meal, where x is the cost before tax and tip. The restaurant charges 7% sales tax and she plans to leave an 18% tip. She knew that she can only spend $18. What is the maximum amount Hadley can spend before tax and tip?