I think he needs to give you more detail. Either piece of equipment gas or are both electric ? Water heater instantaneous or storage type ?: nameplate data ?? All that affects the answer.
Both electric. Water heater storage type.
But let say dryer has load X and water heater has load Y
X + Y = 5kW
That means at 240V
(X+Y)/240 = 21A
I have 30A branch circuit rating 80% is 24A
So if X/240 = 21 A then Y/240= 0A
If Y/240= 21A the. X/240= 0A
Any other combo would be less than 24A for each
Either way and any combination X/240 or Y/240 would be less than 24A
I dont see why each equipment detail is req?