A phase decomposition approach and the Riemann problem for a model of two-phase flows