We will solve this problem using a system of linear equations.

We are given the following relationship between the variables

Replacing the value of D from equation (2) in equation (1)

Solving for N

Replacing the value of N in equation (2)

The answer is the nightstand costs $375 and the Dresser costs $525