Flashing is used to stop water from seeping into susceptible areas, such as roof valleys,…