George and Alex need a room. You're given rooms, each with a current occupancy and a capacity. They need at least free beds in the same room to be comfortable. Your task: count how many rooms can accommodate both of them.
This tests your understanding of processing paired values and applying simple conditions. Before reading on, think: if a room has people and capacity , can they stay there? What about a room with people and capacity ?