A magazine costs half as much as a book. The book costs $4. A pen costs $1 less than a magazine. How much is the pen?
Give me a solution to this problem