Let h be the number of hours worked per week.
U = h*(80-h).
U' = 80-2h.
Set the derivative equal to 0:
80-2h=0, thus h=40.