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