Both are soluble because they are polar molecules as the water is a polar molecule too, so when they share that feature, they are soluble in water. You can realize that these compounds are ionic, and remember the properties of ionic compounds: all ionic compounds are soluble in water.