Let velocity of steamer is u km/h and distance covered is S km.
According to question
Speed of water current = x km/h
and relative velocity of steamer = (u – x) k/h time take to cover the distance
T = s/(u - x) hour
Given expense per hour = Ku3 {K is constant}
Total expenses E = Ku3 . s/(u - x)