To find out how many hours Mary needs to work to break even, we need to set her revenue equal to her costs:
\[ R(h) = C(h) \]
Given the functions:
\[ R(h) = 20 + 30h \] \[ C(h) = 10h^2 - 80 \]
We set them equal to each other:
\[ 20 + 30h = 10h^2 - 80 \]
Now, rearranging the equation to set it to zero:
\[ 10h^2 - 30h - 100 = 0 \]
Dividing the entire equation by 10 gives:
\[ h^2 - 3h - 10 = 0 \]
Now, we can factor the quadratic equation:
\[ (h - 5)(h + 2) = 0 \]
Setting each factor equal to zero gives us the possible solutions for \( h \):
- \( h - 5 = 0 \implies h = 5 \)
- \( h + 2 = 0 \implies h = -2 \) (not a valid solution since hours can't be negative)
Therefore, Mary breaks even after:
\[ \boxed{5} \]
hours.