Gabriel is making a mixture of compost and soil to use for a special plant. He wants his final mix to be 2 parts compost to 6 parts potting soil. He wants to end up with 10 kilograms of mix.

how many kilograms of compost should Gabriel use?