Cora started her math homework at 3:39 P.M. She finished all the problems at 4:12 P.M. How long did Cora spend doing her math homework?