To construct a wall, sand and cement are mixed in the ratio of 3:1. The cost of sand and that of cement are in the ratio of 1:2.
If the total cost of sand and cement to construct the wall is 1000 rupees, then what is the cost (in rupees) of cement used?