Consider a compound slab consisting of two different materials having equal lengths