A rental car agency charges a flat fee of $138.00 plus $27.00 per day to rent a certain car. Another agency charges a fee of $47.00 plus $40.00 per day to rent the same car. Write and solve a system of linear equations to find the number of days for which the costs are the same