(a) The perimeter of the shape is the sum of half a circumference and the diameter itself.
The circumference of a circle with radius [tex]r[/tex] is [tex]2\pi r[/tex], and since [tex]d=2r[/tex] we can write the circumference as
[tex]C=\pi d[/tex]
So, half a circumference is
[tex]\dfrac{C}{2}=\dfrac{\pi d}{2}[/tex]
Ad we get the perimeter by addind the diameter:
[tex]P=\dfrac{\pi d}{2}+d[/tex]
(b) Given the perimeter, we can solve for [tex]d[/tex]:
[tex]51.42=\dfrac{\pi d}{2}+d=d\left(\dfrac{\pi}{2}+1\right)[/tex]
So, we can divide both sides by the parenthesis and we have
[tex]d=\dfrac{51.42}{\frac{\pi}{2}+1}=\dfrac{51.42}{2.571}=20[/tex]