The question is “Replace the formula (p→(q→¬r))→(¬p→q) by an equivalent formula not involving ¬ or →”.
(p→(q→¬r))→(¬p→q)
≡(p→(¬q∨¬r))→(p∨q)
≡(p→¬(q∧r))→(p∨q)
≡(¬p∨¬(q∧r))→(p∨q)
≡¬(p∧(q∧r))→(p∨q)
≡(p∧(q∧r))∨(p∨q)
A second part to the question then asked, based on the statement in the first part and assuming p,q and r are all equally likely, what is the probability that the above statement is true?