Write an expression to represent the monthly costs of a company that rents web servers (w) for $30 a month and a certain number of database servers (d) for $40 a month.