A domestic electric circuit consists of various electrical appliances connected to the main supply. The main circuit is connected to the fuse box, which is used for safety purposes to prevent overloads. A meter measures the total energy consumed by the household. In a typical circuit, multiple devices such as lights, fans, and other appliances are connected in parallel to ensure that each device receives the same voltage. The connections are protected by circuit breakers or fuses that disconnect the power supply in case of an overload. The live wire carries the current, while the neutral wire completes the circuit. The earth wire provides a safety path for the current in case of a fault.
The diagram for a simple domestic electric circuit is as follows: 

Find the unknown frequency if 24 is the median of the following frequency distribution:
\[\begin{array}{|c|c|c|c|c|c|} \hline \text{Class-interval} & 0-10 & 10-20 & 20-30 & 30-40 & 40-50 \\ \hline \text{Frequency} & 5 & 25 & 25 & \text{$p$} & 7 \\ \hline \end{array}\]