A laboratory has exactly 1000 dollars to spend on gloves and flasks. A box of gloves costs 25 dollars and a box of flasks costs 40 dollars. If the laboratory buys a boxes of gloves and b boxes of flasks and spends all the money, then 25a+40b=1000. Which statement about this equation is true?