Jina bought a desktop computer and a laptop computer. Before finance charges, the laptop cost $400 more than the desktop. She 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 8% per year. The total finance charges for one year were $275. How much did each computer cost before finance charges?