Melinda invested three times as much money at 9% yearly interest as she did at 7%. her total yearly interest from the two investments was 170$ How much did she invest at each rate

Thanks !!