At the same time there are about 2 million rail customers a day, so the 9€ ticket will bring 18M€. I'd say they probably break even.
Math is fun, but the entire point is a bit moot. Germany is a civilised country and if you laid off the entire staff for three summer months with no pay, the union would eat you for breakfast.
At least in Berlin which this covers most trains/buses/trams have 0 people checking and there's a few people going on random ones to occasionally check so the ratio here is probably 1 worker to 50+ vehicles.
But quite apart from the person and their ticket-scanner, there's also the whole infrastructure associated with fare taking— fare-free advocates argue that if you get rid of the machines and websites and apps, and all the associated upkeep, it ends up being a wash. Of course this only counts if you're getting rid of all fares rather than doing a one-off summer special.