A sprinkler sprays 0.7 gallon of water per minute. If it takes 45 minutes to ​water a lawn, how many gallons of water does the sprinkler spray?