To find the cost of each pen, \( p \), we can set up the equation based on the information given.
Amir bought a comic book for $9 and spent a total of $25. We know he bought four pens, so the total cost of the pens can be expressed as \( 4p \).
The equation representing the total expenditure is:
\[ 9 + 4p = 25 \]
Now, we can solve for \( p \):
- Subtract 9 from both sides:
\[ 4p = 25 - 9 \]
\[ 4p = 16 \]
- Divide both sides by 4:
\[ p = \frac{16}{4} \]
\[ p = 4 \]
Thus, each pen costs $4.