A herd of 31 horses has 8 white and some black horses. What is the ratio of black horses to white horses?