27 billion for 30 million infections? That's a very poor return on investment (if we can calculate such things for life).
AIDS is not curable, just preventable. If on the other hard we worked on malaria and TB we would prevent closer to 1 billion infections!
And malaria and TB are curable, and malaria causes anemia which makes people tired and less productive, and the cure is considerably cheaper than AIDS prevention.
I (cynically) think that the reason people are focused on AIDS is that the donor countries are worried about it, but they are not worried about malaria and TB. People donate for causes that are close to them, so it's not so cynical for an individual, but I think governments should be instructed by utility - but they are not.