A television and DVD player cost a total of $1232. The cost of the television is three times the cost of the DVD player. Find the cost of each item.
Cost of television:
Cost of DVD player:​