5/8 of the beads in the box were red. The rest were blue beads and green beads in the ratio 3:4. There were 138 fewer green beads than red beads. How many beads were in the box in all?
3/8ths are blue or green
4/7 of the 3/8ths are green
4/7 * 3/8 x = 5/8 * x - 138
x = 336 beads in all