Answer
The two variables used ($x$ and $y$) will represent the different sides of the fence. Three inequalities will be used. Please see the graph.
Work Step by Step
$2x+2y \leq150$
$x \geq 40$
$y \geq 5$
x = length of longer side, y = length of shorter side
The graph was made using graphing software.