solve 29 and 32