Let's call x the cost of the desktop. So, the cost of the laptop would be x-400 because it costs $400 less than the desktop.
Then, we express the following based on the given information.
[tex]0.085x+0.05(x-400)=412[/tex]Note that we use the percentages as their decimal expression. Let's solve for x.
[tex]\begin{gathered} 0.085x+0.05x-20=412 \\ 0.135x=412+20 \\ 0.135x=432 \\ x=\frac{432}{0.135} \\ x=3,200 \end{gathered}[/tex]The cost of the desktop is $3,200.
[tex]x-400=3,200-400=2,800[/tex]The cost of the laptop is $2,800.