thought it was quite clear in this line:
In order to complete the 19th and 20th phases, apart from finishing all the event's Directives, you'll need to purchase any two shipbuilding phases by spending doubloons. It doesn't matter when you purchase these two phases: at the end of the building process or at any other time.
'any two'