First you need a scanner. Then you install the software that will be provided with it. Then you scan the document into a folder eg My Documents. Then you right click on it and select Send To, and then Mail Recipient. The New Email should pop up with your scanned document shown as an attachement. Add a Send to address and off you go.
Hands-on: Samsung Galaxy S8 review