Solution to P8, P9, P10