have you ever wondered how (p q) can be transformed into (q p)? if you…