perimeter>78 means that 2L+ 2W>78 L>39-W check that.
You can ask a new question or answer this question.