Let X be the amount Anna had originally. She spent X*1/4 and has X - X*1/4 = $24 left.
Combining like terms, we get X*3/4 = $24.
Dividing both sides by 3/4, we get X = $32.
#### 32