The Business of Making Movies

How does a movie like like "Men in Black 3" earn $550 million worldwide, but is now just considered profitable?