The total cost function is \( TC = Q^2 + 7Q + 30 \), the total revenue function is \( TR = 40Q - 2Q^2 \), and the break-even points are \( Q = 1 \) and \( Q = 10 \).
Thus, the final answers are:
\[
\boxed{TC = Q^2 + 7Q + 30}
\]
\[
\boxed{TR = 40Q - 2Q^2}
\]
\[
\boxed{Q = 1 \text{ and } Q = 10}
\]