I can't say for sure on the first one, but the second is part of your PCV system. That looks pretty dodgy
The first one I would imagine is the vac line for your carbon cannister. The bolt in your cam cover plugging what should have the breather pipe running from there to your accordian pipe, the same as the driver side. This is for NA so the hose to the accordian pipe is different but the pipe out of the cam cover is the same.
look in the tech section, under "PCV RELOCATION" Is a process of relocating the cam breather pipes to a point where they are less likely to release oil under heavy cornering/breaking (to the point further back on the covers). Photos are from a LHD car, so the oil filler cap will be reversed. If this relocate has been performed on your vehicle, then replace the bolt with something a little more professional looking (hex head studs). Tap the covers to match and fit, or shorten the existing bolts significantly, and refit them. If the relocate hasnt been performed, suggest you try to locate some of the factory breather hardpipes and glue them into position. With the first few photos, try to locate exactly where that capped off pipe runs to and take a photo of it.
Photo 1 -Hose to waste gate solenoid possibly ?. Does car over boost ? Last Photo - Someone has cut the nipple off the valve cover as there is a hose that goes from there to the intact pipe from memory ?. You probably need another valve cover. Would be easier to compare with another car.
have you checked the tech section regarding the PCV relocation, and checked on your car to see if it has been done? Could only mean that a dodgy bolt was the only thing available to fit in the old hole. Equally importantly is what has been done to the fitting on the accordian pipe that the PCV hose is supposed to run to? (as shown in the diagrams posted by Cam). Nasty potential vacuum/ boost leak if not sealed properly. Lot of vacuum hoses run down the passenger side.... even more so after a few Aussie owners with additional BOV's, boost controllers that have been hastily removed prior to sale and the hoses left, sometimes unsealed even. COULD be the carbon cannister related (located front passenger corner of car, below headlight and accessible behind the front bumper). Photo would definitely help.
i will look tomorrow. the car its self is stock like really stock. if there is any where i can look i will