1st picture is for the Warm Air intake, often left open when its duct deteriorates
The duct is a metal flexible tube that runs to a thin steel chamber around the exhaust manifold
When outside air temp is cold and engine is started a vacuum valve opens this duct and sucks in the warmer air around the exhaust manifold so engine can warm up faster
The thin steel air chamber around the exhaust manifold is often left off after engine work, so make sure its there before trying to restore this system
Looks something like this:
https://static.summitracing.com/global/images/prod/large/opg-g201173.jpg
It attaches to exhaust manifold studs and the flex tube from the vacuum valve hooks up to it
These can make a ratting sound if loose or bent, another reason they are removed
Once engine is warmed up a bit, 2 or 3 min, the valve closes and the cold air intake is used
So not an integral part of engine operation, its more for emissions, the faster an engine warms up the lower the emissions