Gregg is a wedding photographer. He charges $500 for his basic package and $150 for each hour he is at the wedding. Which equation can be used to find w, the cost for a wedding that lasts 5 hours?