Professor Stache awarded 500 certificates, some for math, and some for science. Girls won 2/3 of the math certificates and 1/2 o
f the science certificates. If the number of girls who won for math was 50 more than 3/2 the number of girls who won for science, how many girls won for math?