To find out how much of the cookie is left after Mary and Peter ate their portions, we can add the fractions they ate together and then subtract that from the whole cookie.
Mary ate \( \frac{3}{10} \) of the cookie, and Peter ate \( \frac{4}{10} \).
Adding their portions:
\[ \frac{3}{10} + \frac{4}{10} = \frac{7}{10} \]
Now, subtract the amount they ate from the whole cookie (which is represented as 1 or \( \frac{10}{10} \)):
\[ 1 - \frac{7}{10} = \frac{10}{10} - \frac{7}{10} = \frac{3}{10} \]
So, there are \( \frac{3}{10} \) of the cookie left.