ANSWER
[tex]\begin{equation*} 315\text{ }miles \end{equation*}[/tex]EXPLANATION
Let her average rate on the trip to the mountains be x miles per hour.
This implies that her average rate on her way home was (x + 18) miles per hour.
The distance traveled can be found using the formula for speed(average rate):
[tex]\begin{gathered} speed=\frac{distance}{time} \\ \\ distance=speed*time \end{gathered}[/tex]Therefore, on her way to the mountains:
[tex]d=x*7[/tex]And on her way home:
[tex]d=(x+18)*5[/tex]Since the distance is the same for both trips, equate the two equations:
[tex]\begin{gathered} x*7=(x+18)*5 \\ \\ 7x=5x+90 \end{gathered}[/tex]Solve for x in the equation:
[tex]\begin{gathered} 7x-5x=90 \\ \\ 2x=90 \\ \\ x=\frac{90}{2} \\ \\ x=45\text{ mph} \end{gathered}[/tex]Substitute the value of x into the equation for distance to find the distance:
[tex]\begin{gathered} d=45*7 \\ \\ d=315\text{ }miles \end{gathered}[/tex]That is the distance from the mountains to where Tammy lives.