A scientist studying the weather report for \(x\) days observed that:
- It rained on 7 days while the sun was out or after the sun went down.
- Whenever it rained at night it was clear the next day.
- There were 4 clear nights and 5 clear days.
Find the value of \(x\).
Image credit: Wikipedia