Calculate the total length of material needed in a given scenario, then measure and cut the material to the proper size.