A truck can be rented from Company A for $100 a day plus $0.20 per mile. Company B charges $40 a day plus $0.40 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.