Two certificates of deposit pay interest at rates that differ by 4%. Money invested for one year in the first CD earns $175 interest. The same principal invested in the other CD earns $315. Find the two rates of interest.