samantha spent $15.88 at a department store. she spent half as much at the bookstore as she did at the department store. she then spent $12.64 at a restaurant. she now has $33.85 left in her purse. how much did she have to begin with?