35 kg of a type of sandal powder (type A) which costs Rs 614 per kg was mixed with a certain amount of another type of sandal powder (type B), which costs Rs 695 per kg. Then the mixture was sold at Rs 767 per kg and 18% profit was gained. What was the amount of type B sandal powder in the mixture?