A garden table and a bench cost 790 dollars combined. The garden table costs 40 more than the bench. What is the cost of the bench?