How a movie actually makes money

And who profits the most off of it