$\text{Let no of males M = 6k,no of females F= 4k then total no of guests = 10k (where k is a constant)}$
$\text{no of guests attended}$ = $\text{80% of total guests}$
$\implies X * 6k + 1 * 4k = 0.8 * 10k$
$\implies 6*X = 4$
$\therefore \text{M:F } = X*6k : 1*4k = 6X : 4 = 4:4 = 1:1 $