300 billion is actually a lot less than I would have thought... and incidentally it's about 6 times less than the US invasion of Iraq.
In theory a huge solar plant in the Sahara desert would cover all our needs, the problem is moving/storing the energy.
Just saying instead of killing each other in pointless wars we could use those resources to avoid global warming and help raise people out of poverty. I can dream, no? ;-)