The diagram shows the percentage energy losses from a house.

Most energy is lost through
The total percentage energy loss from the roof and the floors is
Insulating polyurethane foam is often used in the cavity walls of houses to reduce energy losses. The foam contains millions of tiny pockets of trapped air.

Explain how this type of foam insulation reduces energy loss by conduction.
Explain how this type of foam insulation reduces energy loss by convection.