In a bag full of beans and rice, the ratio by weight of beans to rice is 2 to 9. If the bag has a total weight of 3 kilograms, how many kilograms of beans are there in the bag? (round to nearest thousandths)