Well. We stopped at 20 m and had fun. Then we stopped at 12 then at 5 where we had an extra cylinder. So, if my wife had had a problem, we would have had plenty of time to go straight to 5 m.
If you calculate the panic that at least one of you 2 would have after a gas loss, the time to solve that at 40m and the harder ascent while gas sharing as you are fairly new divers you wouldn’t have plenty of time. You would for sure be in deco after that aswell since you lose easily around 2 minutes at the bottom.