Most of the machines will literally just print you both tickets if you select the right option.
Your complaint about the money exchange is wild to me, I don’t think I’ve seen anyone try to do that in my 15+ years being in and out of Japan. Why would you expect to hand over a non local currency to them and have that work…?