Sarah buys pens and notebooks. Each pen costs $2.00 and each notebook costs $4.00. She spends a total of $30.00. If represents the number of pens she buys and represents the number of notebooks she buys, and she buys 4 notebooks, how many pens did Sarah buy?