Ratnam hired a car from a car renting agency which charges a flat amount of Rs x for travelling up to 40 kilometres and Rs. y per km for every kilometre travelled thereafter. How much should Ratnam pay the agency for a journey of 50 kilometres in Rs. ?