Toko follows a budget to buy supplies to paint his room. He spends 1/2 of his budget on a roller, a tray, and tape. He spends $12.27 on paint, and of the remaining money, he spends 2/3 on a trim brush, which costs $3.82. How much money had he budgeted?