Jonas had $18. After buying 4 identical pens, he had $10 left. What was the cost of one pen?

18 - 4p = 10

now solve for p