Math
posted by help please:) .
Raul and Rosie are playing a guessing game. Rosie tells Raul that she has 62 miniature flags in her bag, all green or red. Rosie then tells Raul that if she doubled the green flags and halved the red flags, she would have 88 miniature flags in her bag. How many flags of each color are currently in her bag? Define two variables, write a system of equations, and solve to find the number of flags of each color. Justify your answer by showing how you solved the problem.
R = Red
G = Green
R+G = 62
(1/2)R+2G = 88
im getting a weird answer when solving for r and g! help please!

Let R be the number of reds
Let G ....
first equation: R + G = 62
second equation: (1/2)R + 2G = 88 or
R + 4G = 176 (I multiplied each term by 2)
so
R + 4G = 176
R + G = 62
subtract
3G = 114
G = 38
subbing that into the first,
R = 24
So 24 reds and 38 greens
check is 24+ 38 = 62 Yes!
is 12 + 76 = 88 ? Yes! 
thank youuu(:

Welcome!