let the total numnber of geese be x
total male = 0.3x, total female = 0.7x
let those migrated be y
num of male migrated = 0.2y
number of female migrated = 0.8y
male migration ratio = 0.2y/0.3x = 2y/3x
female migration ratio = 0.8y/0.7x = 8y/7x
male ratio/female ratio = [2y/3x]/[8y/7x] = 2y*7x/8y*3x = 7/12