Nate and some friends go to the fair. Nate spends 1/2 of his money on rides. He then spends $12 on food. At the end of the day, Nate has $1 left. The equation is 1/2d-12=1. How much money did Nate bring to the fair