A baker baked 240 tarts. The ratio of the number of chocolate tarts to the number of strawberry tarts was 4:1. He gave an equal number of chocolate and strawberry tarts away and had 7 times as many chocolate tarts as strawberry tarts left. How many tarts did he give away?