import math
#calculate volume of the phase
##initialisation of variables
m2= 50. ##gms
M= 46. ##gms
m1= 50. ##gms
M1= 18. ##gms
v1= 17402. ##cm^3/kmol
v2= 56090. ##cm^3/kmol
##CALCULATIONS
x2= (m2/M)/((m2/M)+(m1/M1))
V= (v1*(m1/M1)+v2*(m2/M))*math.pow(10,-3)
##RESULTS
print'%s %.1f %s'% ('volume of the phase=',V,'cm^3')
import math
#calcualte difference in enthalpy and amount of heat removed
##initialisation of variables
nw= 9 ##kmol
na= 1 ##kmol
##CALCULATIONS
dh= 75*nw*nw/math.pow(na+1.8*nw,2)
Q= -75*na*nw/(nw+1.8*na)
##RESULTS
print'%s %.2f %s'% ('difference in enthalpy=',dh,'kJ/kg')
print'%s %.1f %s'% ('amount of heat removed=',Q,'kJ')