At a supermarket, 1/2 of the kiwifruits and 1/7 of the strawberries were rotten. The ratio of the total number of strawberries were rotten. The ratio of the total number of strawberries to the number of kiwifruits was 7:3. If there was 245 rotten kiwifruits and strawberries, how many kiwifruits and strawberries were there altogether?