The ages of the number of patients admitted in the hospital for \(5\) years is given below. If the median is 42, find the value of \(x\).
 
Age\(0 - 15\)\(15 - 30\)\(30 - 45\)\(45 - 60\)\(60 - 75\)
Number of patients10790\(x\)150124
 
The value of \(x\) is