Shear stress in a flanged shape

The moment of shape (1) about the neutral axis is computed...

...followed by the moment of shape (2) about the neutral axis...