Here is how to answer it.
Given that Natasha had 7/8 gallon of paint and Ivan took 1/4 gallon of paint, what we are going to do is to subtract 1/4 from 7/8. Since both fractions have different denominators, let's find their common denominator. We are going to multiply 1/4 by 2 and we get 2/8. Next deduct 2/8 from 7/8 and we get 5/8. So there's only 5/8 gallon left. The correct answer would be YES. Ivan left her enough paint.