A washer and dryer cost a total of $960. The cost of the washer is three times the cost of the dryer. Find the cost of each item.

Cost of washer:

Cost of dryer: