Solutions to probs 8 & 10