There were three producers A, B and C. They produced 100 kg rice, 20 kg wheat and 50 kg onions respectively. The value of each of these goods was X rupees. If A wants 10 kg wheat and 25 kg onions, how much rice should he directly sell to B and C under the barter system?