Carpenters were sawing some logs. They made 10 cuts and this produced 16 pieces of wood. How many logs did they saw?