b means blue beads
r means red beads
b = 6r
r = r
49 = 6r + r
(solve for r now)
49 = 7r
(divide both sides by 7 to get r alone)
7 = r
(switch it around to r =)
r = 7
(plug r back into the following equation to get b or just subtract 7 from 49)
b = 6(7)
b = 42
Ivan has 7 red beads and 42 blue beads.