The triangle with vertices ar Rom, Napoli and Foggia is XYZ.
Let YX be perpendicular to XF, with W on XF.
We have ∠YPX = 130° - 90°= 40°, ∠ZYX = 60°, XW = RNcos40°= 170cos40°, ZW = NFsin60° =130sin60°
XZ = XW + ZW = 170cos40° + 130sin60° = 243 km.
Yay!