utils for solving math homework in week 5