L := laptop
D := desktop
before finance, equation 1:
Di = 6% = 0.06 (desktop interest per year)
Li = 7% = 0.07 (laptop interest per year)
For one year, the total finance charge is (equation 2):
We substitute L (the equation 1) to the equation 2:
Then we substitute the value D in equation 1 to find the laptop price:
Therefore, the laptop and desktop prices are $1800 and $2100, respectively.