In compartment I, the given pressure is the vapour pressure P0 of volatile liquid. It is equal to 500torr.
In compartment II, the given pressure is the vapour pressure P0 of volatile solid. It is equal to 300torr.
The sum of the pressures inside two compartments is 500+300=800torr.