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