Answer: The required cost of the magazine is $10.
Step-by-step explanation: Given that Ryan bought 3 books and a magazine. He paid $30 and relieved $5 change and the magazine cost twice as much as each book.
We are to find the cost of the magazine.
Let x and y represents the cost of a book and the magazine respectively.
Then, according to the given information, we have
![3x+y=30-5\\\\\Rightarrow 3x+y=25~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(i)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/fkravtb10j51hlo0yemlld23kkw9hmxk3e.png)
and
![y=2x~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(ii)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/4h96kxfzwiwo7bmsm7hxb3t3itdzi4l92s.png)
Substituting the value of y from equation (ii) in equation (i), we get
![3x+2x=25\\\\\Rightarrow 5x=25\\\\\Rightarrow x=(25)/(5)\\\\\Rightarrow x=5](https://img.qammunity.org/2020/formulas/mathematics/middle-school/7wqt3s68iq56h9swqvi20u9p2fa6s3q0dg.png)
and from equation (ii), we get
![y=2*5=10.](https://img.qammunity.org/2020/formulas/mathematics/middle-school/9vnx2sewcuf54jsbpd5xq87kjq52fyk8d7.png)
Thus, the required cost of the magazine is $10.