A computer and printer cost a total of $940The cost of the computer is three times the cost of the printer. Find the cost of each item.