Doing sums

Our rules say:
(6) Do not post classroom or homework problems. And I must say that this likes like homework to me...