43 are written in an ascending order. The median of the data is 24. Find the value of x.