How is the value of the rupee decided with respect to the dollar?

Once upon a time, there were three countries. A, B and C. When they established they were all self-sufficient. They all were producing rice, vegetables, bricks, and clothes required for all their inhabitants. Everything was going great. Now, Country C found a…