The daily number of hours spent by a student on a smartphone is denoted by X. The probability that a student spends more than x hours is 1- ax² for 0 < x < 4 and 1-bx for 4 < x <10 where x E R and a, b are real constants. No student spends more than 10 hours on a smartphone each day. Show that a = 1/40 and b = 1/10. Hence find the median daily number of hours a student spends on a smartphone.