Mary has some money to purchase furniture for her home. She bought a television that cost $1400. She spent 40% of the remaining money on a bed. If the bed cost 25% as much as the total amount of money she had at first. What is the difference between the cost of the television set and the bed?