Geomagnetic storms and solar coronal mass ejections (CMEs) have been shown to be associated since the discovery of CMEs in solar activity (Yurchyshyn et al., 2004). An intense geomagnetic storm can either be stemmed from a CME, or from a coronal hole. However, a great geomagnetic storm can only be sourced from a CME (Le et al., 2012). The aim of this paper is to study the relation between the coronal mass ejections (CMEs), and their associated solar flares and correlate this with the Disturbance storm time (Dst) index. We have studied the count rate of soft X-rays class of X, M and C type through a histogram type plot for studying the number of X-rays of different class observed during solar cycle 23 and 24. We have also studied the angular width, speed of coronal mass ejections (CMEs) and disturbance storm time (Dst) index of solar cycle 23 and 24 for the whole cycle (Pant et al., 2021).