5. This puzzle is from the late logician and mathematician Raymond M. Smullyan: A dealer bought an article for $7, sold it for $8, bought it back for $9, and sold it for $10. How much profit did he make?