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