Ralph and Joe leave school walking in opposite directions. Ralph walks 1 km per hour faster than Joe. After 2 hours they are 30 km apart. What is the rate of each