Let each magazine cost 1 unit. Then each book costs 2 units.

Books : Magazines (count) = 5 : 4.
Total cost of books = 5 × 2 = 10 units.
Total cost of magazines = 4 × 1 = 4 units.

Ratio of total cost = 10 : 4 = 5 : 2 = 2.5 times.

Final Answer: 2.5