Someone help me solve this:

Noelle spent $36 on books and pens. She spent $12 more on books than she did on pens. How much did she spend on books?

I need help with figuring out HOW to write the equation and solving it. Thanks!