On Friday, a local hamburger shop sold a combined total of 504 hamburgers and cheeseburgers. The number of cheeseburgers sold was three time the number of hamburgers sold. How many hamburgers were sold on Friday?