0.49f + 0.34p = 5.00 solve for f and p

Since the total cost must be $5, the we have the following equation which relates the postacard and first class staps:
[tex]0.49f+0.34p=5[/tex]where f denotes the number of first class stamps and p the nunber of postcard stamps.
Now, we need to solve for f. Then, by moving 0.34p to the right hand side, we have
[tex]0.49f=5-0.34p[/tex]and by dividing both sides by 0.49, we get
[tex]f=\frac{5}{0.49}-\frac{0.34}{0.49}p[/tex]or equivalently
[tex]f=\frac{5-0.34p}{0.49}[/tex]Now, we need to solve for p. Then, by moving 0.49f to the right hand side, we obtain
[tex]0.34p=5-0.49f[/tex]and by dividing both sides by 0.34, we get
[tex]p=\frac{5-0.49f}{0.34}[/tex]Finally, we have that f=7 and we need to find p. In this regard, this last equation must help us. By substituting f=7, we have
[tex]p=\frac{5-0.49(7)}{0.34}[/tex]which gives
[tex]\begin{gathered} p=\frac{5-3.43}{0.34} \\ p=\frac{1.57}{0.34} \\ p=4.617 \end{gathered}[/tex]By rounding up this result, the number of postcard stamp is 5.
In summary, the answers are
[tex]\begin{gathered} f=\frac{5-0.34p}{0.49} \\ p=\frac{5-0.49f}{0.34} \\ \text{and} \\ 5\text{ postcard stamps} \end{gathered}[/tex]