Prioritizing tasks based on importance and urgency