A transformer consists of two coils wound so that the magnetic flux generated by one goes through the other.