### Instruction: A ship 77 km from the shore, springs a leak which admits to 9/4 tonnes of water in 11/2 minutes. 92 tonnes of water would sink it. But the pumps can throw out 12 tonnes of water per hour. Find the average rate of sailing so that the ship may just reach the shore as it begins to sink.
Answer Choices: (A) 10.5 (B) 11 (C) 12 (D) 13 (E) 15 Please write a program to solve it.### Response: distance_to_shore = 77  # in km
leak_rate = 9/4  # in tonnes per 11/2 minutes
sink_weight = 92  # in tonnes
pump_rate = 12  # in tonnes per hour

# Convert leak rate to tonnes per hour
leak_rate_per_hour = leak_rate * (60 / (11/2))

# Calculate how many hours the ship can stay afloat
hours_to_sink = sink_weight / (leak_rate_per_hour - pump_rate)

# Calculate the average rate of sailing
average_sailing_rate = distance_to_shore / hours_to_sink
print(average_sailing_rate)