Problem 18 half-solved