what is invert both sides law of proportions