A group of boys went on a camping trip. They spent the night in 5 tents and 4 cabins. There were 9 boys in each tent and 7 boys in each cabin. How many boys went on the trip?