Solutions to 30-37, reformatted slightly.