The paper deals with a particular class of equity-linked life insurance contracts called "pure endowment with guarantee". In our setting, these contracts are based on two risky assets in a two-factor jump-diffusion market. The first asset is responsible for the maximal size of future profits, while the second one provides a flexible guarantee to the insured. Quantile hedging methodology and Margrabe’s formula are exploited to price such contracts.