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.
Note that we use the percentages as their decimal expression. Let's solve for x.
The cost of the desktop is $3,200.
The cost of the laptop is $2,800.