To say that the function touches the x-axis is another way of stating that for some x-value the resulting value will be 0 (i.e. the y-value is 0). Thus what you want to do is determine whether:

Consider the function:

This is just your equation scaled by a factor 10 to make the number easier to work with. Clearly scaling won't change the number of intersections with the x-axis. Now note,

and since f is continuous it must intersect the x-axis between -2 and 0 (when going from negative to positive), and again between 0 and 8 (when going from positive to negative).
To see that these are the only solutions just rewrite f(x) as:

so f(x) =0 precisely when

but a quadratic function intersects the x-axis at most twice, and we have found two intersections so precisely twice. Alternatively you could just have found this quadratic function and computed the discriminant and noted that it was positive.