let x = cost per ticket
he bought a ticket for himself and three friends = 4 tickets
the service fee = $7/ticket x 4 tickets
the shipping fee is $12
1. Total cost = 4x +($7/t)4t + $12, which gives us 4x + $40
2. x = (Total cost - $40)/4