If a firm is producing where MP1/w1 > MP2/w2, what can it do to reduce costs but maintain the same output?

The firm can reduce costs by substituting the input with the lower marginal product for the input with the higher marginal product. This will allow the firm to maintain the same output while reducing costs.