(i) 9p2=(3p)2, 49=72 and 42p=2×3p×7. So the expression matches a2−2ab+b2=(a−b)2 with a=3p, b=7:
9p2−42p+49=(3p−7)2
It is also equal to (7−3p)2, but a side must be a positive length. Since p>3, 3p>9>7, so 3p−7 is positive and 7−3p is negative. The side is (3p−7) cm.
(ii) For p=5 the side is 3×5−7=8 cm, so the area is 82=64 sq cm. From the expression:
9(5)2−42(5)+49=225−210+49=64
Both give 64 sq cm, and the side is 8 cm.