To solve this you must use a proportion like so...

12.5 is a percent and percent's are always taken out of the 100. This means that one proportion will have 12.5 as the part and 100 as the whole
We want to know out of what number is 6 12.5% of. This means 6 is the part and the unknown (let's make this x) is the whole.
Here is your proportion:
Now you must cross multiply
6*100 = 12.5*x
600 = 12.5x
To isolate x divide 12.5 to both sides
600/12.5 = 12.5x/12.5
48 = x
This means that 12.5% of 48 is 6
Hope this helped!
~Just a girl in love with Shawn Mendes