Builds the right-angled triangle first. The perpendicular from O bisects the chord, so the script works with half of AB, 9 cm, and adds the squares because OA is the hypotenuse. Using the full chord, 18, gives the wrong radius and the wrong angle.
Doubles the angle and uses arc length. tan−1(49) is only angle AOM; the arc needs the full 132.07…°. A perimeter needs the arc-length formula, not the sector-area one: the June 2024 Paper 1H examiner report notes that on its segment question some students mixed the two up, using the formula for arc length where the area of a sector was needed. The last step adds the straight edge, AB=18 cm; stopping at the arc, 22.7 cm, loses the A1.
Keeps full accuracy. The unrounded radius and angle go into the arc length. Rounding them to 9.8 cm and 132° gives 40.6 cm, which is not awrt 40.7.