A family buys 6 airline tickets online. The family buys travel insurance that costs ​$17 per ticket. The total cost is ​$1 comma 140. Let x represent the price of one ticket. Write an equation for the total cost. Then find the price of one ticket.