24 only like science
12 only like math
12 like math & science
2 don't like either
sums to 50
12/24 =2:4 ratio of those who only like math to those who only like science
50-12-2 = 36 who only like one of the 2 subjects. 1/3 of the 36 like only math, 2/3 of 36 like only science