Grace and Ruby live in a house next to a fast flowing river. One day they decide to travel a few miles down the river and then return home. Grace is on foot, jogging along the riverbank at a speed of 5mph. Ruby takes the boat, which can travel at 9mph relative to the current of the river. They both set off at the same time, turn around at the same spot and arrive home at the same time. How fast was the current of the river?