solve PE19, 20, 21