Wemeasurehowpowerfulastar’smagneticfieldisbylookingattheamountofX-raysitgivesoff.

Please segment the words.
We measure how powerful a star’s magnetic field is by looking at the amount of X-rays it gives off.