If the ratio of the sum of first n terms of two APs is (7n+1):(4n+27), find the ratio of their mth