I have a problem where there are six more girls than boys and the ratio of girls to boys is 5:2.

Now I can represent first statement as G = B + 6.

But how do I represent the 5:2 ratio algebraically. This seems as if it should be very basic but can't seem to get my head around it.

If total number of children had been mentioned I could have said total = 5G + 2B But I have no total. so how do I do it?

I am most interested in how to represent the ratio 5:2 algebraically than an answer to the problem.