How are proportions solved when brought out in word problems?

It depends on the type of problem. Generally, one puts a equality to the given ratio to the unknown ratio.

Sample: The ratio of boys to girls at a dance is 1:3. How many girls are there at a dance with 40 boys?
1/3=40/x