state and explain law of resistance