Link iPad with iMac account

I have both platforms app both are working as different account ,how do I link them together ,I need my notes to be shown in both ?

Are there any other apps that you use that have different iCloud accounts on different devices but still link iCloud based data across those devices? I’m curious if that is even possible as it would seem to me that it is not.