Anyone with more than 40 total weekly hours gets each assignment scaled so their total becomes about 40 (hours × 40 ÷ total, rounded).
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.