Observations of some data are x5,x,x3,2x3,x4,2x5 and 3x4 where x>0. If the median of the data is 4, then find the value of x.