Together??
A 40 is plenty for a dragon and more than a ball will need.
Both need floor space, not height.
Read some care sheets before you build something you cant use.
Also UTH should always be regulated and wood doesnt ignite at 95 degrees. If you are set on building then radient heat panels would be better.