google it or better get the FSM for your car, and read how to do the tests, that prove what causes each DTC.
505 idle speed failure.
351
http://www.obd-codes.com/p0351
there are 5 engines, so first find that out,.
351
ignition Coil # 1 Primary Circuit Peak primary circuit current not achieved with maximum dwell time.
this means the coil primary is open (other books show the fail is for too low current (open coil in COP)
505
Engine started; system voltage over 11.5v and the PCM detected an
unexpected voltage condition on one or more of the IAC motor circuits for 2.75 seconds with the IAC motor active.
id fix the 351, cop coil , its probably bad, or bad connections to it.
then clean the iSC,
then reset all codes, with a scan tool
drive 20 miles or until CEL glows, driving and the rescan.