[tex] \text{Given that Rihanna works in a coffee shop approximately nine miles from}\\ \text{her apartment. And on her way to work, she always stops halfway}\\ \text{through to meet her best friend at the part.}\\ \\ \text{The distance of the part from her apartment is }=5x+2 \text{ miles}\\ \\ \text{and the distance from the park to the coffee shop is }(25x-8)\text{ miles}\\ [/tex]
[tex] \text{since the park is halfway, so the distnace from apartment to park}\\ \text{and park to coffee shop must be equal. so we have}\\ [/tex]
[tex] 25x-8=5x+2\\ \\ \Rightarrow 25x-5x=2+8\\ \\ \Rightarrow 20x=10\\ \\ \Rightarrow x=\frac{10}{20}\\ \\ \Rightarrow x=\frac{1}{2} [/tex]
Hence the value of x is 1/2