Well for a given beam shape the moment of inertia I is constant. Your loading scenario, which you know, determines the distance y from the neutral axis to the extreme fiber. So, section modulus I/y...