Between 1 and 31 m arithmetic means are inserted so that the ratio of the 7th and (m−1)th means is 5 : 9. Then the value of m is