If the median of the data 4, 7, x-1, x-3, 16, 25, written in ascending order, is 13 then x is equal to