A rock sample was added to cold dilute HNO3. The gas evolved was passed into…