Hi Bob,
You will pay tax in the country that you are considered tax resident and this is for you to determine.
See guidance at
RDR3 Statutory Residence Test and you may need to apply for tax exemption in one of the countries.
You will need to check with the Netherlands as to whether a work permit is required or not.
Thank you.