Here is the work with the answer. Hope this helps. God bless
If goal post is rectangle shaped then u can see distance of bc base is 3 times of its sides(distance from top to ground)(imagine aectangle)
So let x be the distance so bc=3x
Perimeter is given now u just put values in a formua of perimeter