The ratio, by volume, of salt to sugar to water in a certain solution is 3:5:7. The solution will be altered so the ratio of sugar to salt is doubled while the ratio of sugar to water is maintained. If altered solution will contain 7 cubic centimeters of water, how many cubic centimeters of salt will it contain?