500w Solar Panel

Question involving cost=power x time x cost of 1kwh?
I usually get how to use this equation but i don’t know how this answer came up:
A large Solar Panel supplies an average of 500W of power. The cost of 1kwh is 12.5p. How long will it take the solar panel to produce £1 worth of electrical energy. The answer is 16hours. Could you please explain in steps for me. Thank you.
total cost = (rate per kwh)(number of kwh) or one pound = 100 p = [ 12.5p/( 1 kwh) ] [ number kwh ] so that [ number kwh ] = 100 p / 12.5 p = 8 kwh . Since power = energy / time, we see that (power)(time) = energy. Also, since power in watt and time in hour or (watt)(time) = (power)(time) = energy, we find that the 100 p / 12.5 p = 8 kwh is just energy. Notice that we have not yet used the given power of 500W. From the formula time = energy / power, we get time = 8 kwh / 500w = 8(1000w)h /500w or time = 80h/5 = 16h.