discrete and continuous word problems