Number of students who like football$$=6$$
Number of students who like cricket$$=12$$
Number of students who like tennis$$=30-6-12=12$$
The ratio of the number of students liking football to the number of students liking tennis$$=\dfrac {6} {12}=\dfrac {1} {2}$$.