Ensure that power is disconnected at the breaker panel before beginning work on any wires.
Identify the wires present in the box. There should be at least one line carrying power (but possibly more) and a wire that goes to the device to be controlled by the switch.
Examine the back of the switch and tamper-resistant outlet combination device to locate where the wires should attach. In general, one side should have silver screws, and one side should have gold screws. There should also be a small metal tab between the two gold screws.
Isolate the ground wires. Tightly twist and crimp them together. Cut off all of the long ends except one. Twist this around the green screw on the device. Tighten the screw completely.
Strip the black "hot" wire back about 1/2 inch. If you have multiple wires carrying power, you will need to strip back the black wire of the spare 14-2 and twist it to the power wires under a wire nut so that you have a single power wire to connect to the device.
Strip the white neutral wires back 1/2 inch. You will need to strip back the white wire from the spare piece of 14-2 and attach it to the other neutrals under a wire nut so you are left with a single neutral wire.
Attach the hot and neutral wires to the tamper-resistant outlet half of the device. Twist the hot wire around the gold screw and the neutral around the silver screw. Tighten both screws completely. You should also tighten the second gold screw completely.
Strip the black wire leading to the light 1/2 inch. Twist this around the silver screw on the switch half of the device. Tighten the screw.
Fold the wires into the box behind the device, being careful not to let any bare wires touch each other. Screw the device into the box and cover it with a standard outlet faceplate.