Solutions to 21-29 (slightly reformatted)