Zeph had tarts and Daniel had croissants. Both gave half of what they had to each other. Zeph sold 8 tarts and Daniel sold 30 croissants. In the end, the ratios of tarts to croissants for Zeph and Daniel were 1 : 7 and 1 : 5 respectively. How many tarts did Zeph have at first?