Kevin bought a desktop computer and a laptop computer. Before finance charges, the laptop cost $350 less than the desktop. He paid for the computers using two different financing plans. For the desktop the interest rate was 7% per year, and for the laptop it was 9.5% per year. The total finance charges for one year were $305. How much did each computer cost before finance charges?