Time: 3.57 s
When you fire a projectile horizontally from a certain height, the only parameter that will influence how much time that projectile spends in flight is the height from which you launched it.
In other words, the time of flight depends solely on the height of the pirate ship. The initial velocity will impact the projectile's range, but not its flight time.
Vertically, the movement of the projectile will be affected by gravity. Since you start at a height of 17.5 m above sea level and enp up at sea level, the vertical displacement of the projectile will be negative.
Don't forget to use this convention for the sign of the gravitational acceleration as well!
This means that you can write
The vertical component of the initial speed will be zero because the projectile is launched parallel to the horizontal axis.
As a result, the time of flight will be