Answer:
Sam have [tex]\$174[/tex]
Step-by-step explanation:
Let
x-----> amount of money that Sam has
y-----> amount of money that Andy has
we know that
[tex]x+y=340[/tex] -----> equation A
[tex]x=y+8[/tex] ----> equation B
substitute equation B in equation A
[tex]y+8+y=340[/tex]
[tex]2y=340-8[/tex]
[tex]y=332/2=\$166[/tex]
Find the value of x
[tex]x=166+8=\$174[/tex]