Ok so we know that there were 54 items sold, of which were only brownies or cookies.
If 9 were cookies then
(54 - 9) brownies, or 45 brownies were sold.
So the ratio of brownies sold to cookies sold is
45:9, which when simplified, is a 5:1 ratio.
Hope this helped