solved ex7.2a