The solar plasma conditions in the source regions of two explosive events