A truck can be rented from Company A for ​$170 a day plus ​$0.50 per mile. Company B charges ​$80 a day plus ​$0.80 per mile to rent the same truck. Find the number of miles in a day at which the rental costs for Company A and Company B are the same.