They would be equal partners so if the rental profit after expenses was €3,000 a year, each would have to show €1,000 on their tax return.
But a jointly owned property to be shared by cousins sounds like a source of real strife. One family might get more use out of it. Who gets the best bedroom? Can they have friends there?
You will need a very detailed agreement in advance.