A truck can be rented from company A for $40 a day plus $0.30 per mile. Company B charges $20 a day plus $0.70 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.