In a small apartment complex, there are 15 apartments, each with 3 windows. One evening, a maintenance worker noticed that 24 windows were lit. How many apartments had their lights turned off? Let's think step by step and output the final answer within \boxed{}.
user