Algebra problem: a rental car agency charges a flat fee of $138 plus $27 per day to rent a certain car. Another agency charges a fee of $47 plus $40 per day to rent the same car. Find the number of days for which the costs are the same. Round your answer to the nearest whole number of days.