Translate the following inference to logic notation: It is raining if and only if it is windy. If it rains, then Michael is cooking. If Michael cooks, then it is windy. Therefore it is windy if and only if it is raining.
p <-> q. p -> r. r -> q. Therefore q <-> p.