Mask Math!

Masks are important, but why! What’s the math behind this?