A milkman bought 40 litres of milk at rs. 26.50 per litre and added 6 litres of water to it. He sold the mixture at rs. 17 per litre. How much did he gain? ​