Vietnam and Cambodia in three weeks

Putting together a first trip through Vietnam and Cambodia, about three weeks, and trying to work out the split and the order - most people seem to end in Siem Reap for Angkor. How many days does Cambodia really need alongside Vietnam, and which way round? For anyone who’s done both, how did you divide it? Thanks in advance.