Please help with this maths question about simultaneous equations

Answer:
[tex]\pounds8[/tex]
Step-by-step explanation:
[tex]\text{Solution: }\\\text{Let the cost of book be } \textit{\pounds}x\text{ and cost of magazine be }\textit{\pounds}y.[/tex]
[tex]\text{1st case:}\\x=2y......(1)\\[/tex]
[tex]\text{2nd case:}\\x+4y=24....(2)\\\text{Substituting equation(1) in equation(2),}\\2y+4y=24\\\text{or, }6y=24\\\text{or, }y=4\\\text{Equation(1) becomes: }\\x=2(4)=8\\\text{So, the cost of a book is }\textit{\pounds}8.[/tex]