Answer:
316227.766 kpc
Step-by-step explanation:
Brightness is given by

where
L = Luminosity of Sun
d = Distance to the Sun
= Distance to the supernova
= Luminosity of supernova = 10L
From the above relation we get

The distance to the galaxy is 316227.766 kpc