Let the price of mixed variety be =Rs.x
By the rule of alligation
C.P of 1 kg of type 1 rice=Rs.15 ie x-15 to mean price Rs.x
C.P of 1 kg of type 2 rice=Rs.20 ie 20-x to mean price Rs.x
Price of the mixture is Rs. 18 per kg.