In a family there are two cars. In a given week, the first car gets an average of 15 miles per gallon, and the second car gets 40 miles per gallon. The two cars combined drive a total of 1775 miles, and the sum of their fuel efficiencies was 60 miles per gallon. What were the fuel efficiencies of each of the cars that week?