In a nutshell, your hot and neutral wires (black and white, respectively) will both go to the switch. You’ll run a 14-3 wire from the box to the switch. You’ll need to pigtail the hotline and cap them with a marrette. Connect the pigtail and the remaining black wire to the outlet. Connect the neutral wire to the silver terminal on the other side. Each line has a copper line, which needs to be grounded to the grounding screw. Electrical work needs to be done correctly to work safely. If you’re uncertain about what you are doing, we highly recommend hiring an electrician. Electricity can cause a lot of damage if done incorrectly, and what seems like a simple task is often best left to professionals.