6V motor powered by a 24V battery

I would suggest you figure this out empirically. Attach a load to your motor -- like a propeller or something -- and run it from 6V. Measure the RPM and current draw.
Now run it from PWM 24V and finesse the duty cycle and frequency until you reach a similar RPM and current draw.