Rice costs $x per kilogram.
Potatoes cost $(x + 1) per kilogram.
The total cost of 12 kg of rice and 7 kg of potatoes is $31.70.
Find the cost of 1 kg of rice.