Step-by-step explanation:
Both are part of a family in physics which scientists refer to as the electromagnetic spectrum. All waves in this spectrum including light and x-rays travel at the same speed (3*10^8 m/s in a vacuum). However they differ in their wavelength and frequencies through the equation-----speed of light=wavelength multiplied by frequency.
Light may have a higher frequency than x-rays but lower wavelength. Either way they both multiply to receive the speed of light as the answer.