For this case we can make the following rule of three to solve the problem:
8 planets -------------------> 100%
6 planets -------------------> x
From here, we clear the value of x.
We have then:

Answer:
the percentage of the planets that have moons is 75%