The mean of 5 numbers 18,24,15,2x+1,12 is given as 21.
Mean=NumberofobservationsTotalobservations
21=18+24+15+2x+1+125
105=70+2x
2x=35
x=17.5