Let be the number of 49 cent stamps bought and be the number of 34 cent stamps bought. We can set up the following equations using the information above:
Substituting the first equation into the second equation will give you the following:
Solving for B will give you the number of 34 cent stamps purchased, and then you can figure out the number of 49 cent stamps purchased.