Massachusetts has a 9% sales tax. Timothy bought a Toro lawn mower and paid $36 sales tax. What was the cost of the lawn mower before the tax?