Malachi decides to call for some fast food delivery. If he chooses McDonalds, the delivery fee is 5 dollars and each hamburger costs 1.5 dollars. For KFC, there is no delivery fee but each chicken sandwich costs 2.5 dollars. If the total costs of the two options are the same, how many hamburgers did he buy?