A ship with a faulty engine sailed for only 7 hours over a period of 2 days and covered a distance of 59 kms. It average speed on the first day was 5 km per hour slower than that on the second day. But it sailed 3 hours longer on the first day than that on the second day. What was its average speed on the second day?