You can't, just don't. Fluorescent lamps and ballasts must be matched, tubes of different types run at different currents, the cathodes are different, the voltage drop across the tube is different, they have different characteristics and that's why specific ballasts are sold. If you have T8 ballasts use T8 tubes, there is no advantage of T5 tubes without the special ballasts to drive them.