The term t needed in the transverse shear stress formula is defined as the width of the shape at the point where the shear stress is calculated.(Note that the width t is measured perpendicular to the direction of the shear force.)
For this case, the shear force V acts in a vertical direction; therefore, the width of the shape at the neutral axis location is t = 10 mm.