There is a large oil tank in an oil depot. In the first 8 minutes, only the oil inlet pipe is opened but not the oil outlet pipe. When the oil in the oil tank reaches 24 tons (there is no oil in the crude oil tank), the oil inlet pipe and the oil outlet pipe are opened simultaneously for 16 minutes. The oil in the oil tank increases from 24 tons to 40 tons. Then the oil inlet pipe is closed and only the oil outlet pipe is opened until all the oil is discharged, It is assumed that the flow rates of the inlet pipe and the outlet pipe remain constant respectively in unit time Write the functional relationship between the oil storage quantity Q (ton) and the time t (minute) of oil in and out in this period

There is a large oil tank in an oil depot. In the first 8 minutes, only the oil inlet pipe is opened but not the oil outlet pipe. When the oil in the oil tank reaches 24 tons (there is no oil in the crude oil tank), the oil inlet pipe and the oil outlet pipe are opened simultaneously for 16 minutes. The oil in the oil tank increases from 24 tons to 40 tons. Then the oil inlet pipe is closed and only the oil outlet pipe is opened until all the oil is discharged, It is assumed that the flow rates of the inlet pipe and the outlet pipe remain constant respectively in unit time Write the functional relationship between the oil storage quantity Q (ton) and the time t (minute) of oil in and out in this period

Oil inlet speed = 24 / 8 = 3 (T / min)
Oil output speed of oil outlet pipe = 3 - (40-24) / 16 = 2 (T / min)
So: starting 8 minutes: q = 3T (0