Bobby spent $1288 of his salary on a TV and 2/5 of a remainder on his car and house loan. He saved the rest of his salary. If he saved 1/4 of his salary, how much was Bobby's salary?