Advertisement - Members don't see this ad
Short answer: Do EM/IM combined residency programs. 5 years. Get board certified in both afterwards.
Doing both EM and IM because you can't chose between the two is universally looked upon as a bad decision. Only do the combined path if you have a clear reason for doing so.