What should Ryan do to avoid the bad happening?

Answer:

He did his homework in the afternoon.
Discussion:
Ryan spent his day in his friend’s house. He didn’t have a course, so he arrived home at about 5 p.m. He even didn’t do his house chores. After having dinner, Ryan’s mother reminded him of his homework. Hesistanly, Ryan went to his room and prepared his book. Suddenly, blackout occured. It was very dark and Ryan couldn’t see anything. For matters worse, he could not use his emergency lamp. It was out of the battery. The blackout lasted for hours.
  Sistem Politik Budaya, Masyarakat Batak