Bonnie spent half of her money on a pair of headphones. Then she spent half of her remaining money on digital downloads. Finally she spent half of her remaining $12.75 on a book. How much money did Bonnie have to begin with?