+0  
 
0
780
1
avatar
you pay $105 for 8 tickets to attend a concert. Student tickets cost $10 and adult ticket cost $15. How many of each type of ticket did you buy?
I am so lost in this problem
 Jun 2, 2012
 #1
avatar+3146 
0
105=x*10+y*15
x+y=8

[input]solve( 105=x*10+y*15, x+y=8 )[/input]

105=x*10+y*15 and x+y=8
105=x*10+y*15 and x=8-y
105=(8-y)*10+y*15
105=8*10-y*10+y*15
105-8*10=-y*10+y*15
25=-y*10+y*15
25=y*(-10+15)
25=y*5
5=y
y=5

with x=8-y and y=5:
x=3
 Jun 2, 2012

1 Online Users