A local hamburger shop sold a combined total of 500 hamburgers and cheeseburgers on Wednesday. There were 50 fewer cheeseburgers sold than hamburgers. How many hamburgers were sold on Wednesday?