a pawnbroker buys a computer and a guitar for $500. He sells the computer at a markup of 40%, but has to take a loss of 10% on the guitar in order to sell it. If he makes a profit of $110 on the sale of the two items, what did he pay for the computer?