Answer: It sounds as if you worded it correctly the first time, though for a math assignment, I probably wouldn't use the term "doubled" (though it is technically correct)
Explanation:
G = 2B is "The total number of girls is two times the number of boys"
B = 2G is "The total number of boys is two times the number of girls"