WARNING: This page is about a different car, the 2013 Subaru Forester. However, it is still accessible from the selected car via links, so may be relevant.
Install in the reverse order of removal.
NOTE:
Connect the vacuum hose as shown in the figure.
Fig 1: Connecting Vacuum Hose (Purge Control Solenoid Valve 1)