is there an assumption that both appliances will never be working at full power?
Right. It’s called “diversity”. The elements are controlled by thermostats and cycle on and off; the average load is well below the max.
Note that a 40A circuit can supply substantially more than that, safely, for a while.
