Allow the upload of word, excel, powerpoint and pdf

How could I set a rule to only allow the upload of word, excel, powerpoint and pdf files? I have been trying in different ways but it has not gone well, I’m blocked and others are enabled. I need your help please guys!