How is the following resin intermediate prepared and which polymer is formed by this monomer unit?

How is the following resin intermediate prepared and which polymer is formed by this monomer unit?

Melamine and formaldehyde are the starting materials for this intermediate. Its polymerisation leads to the formation of melamine-formaldehyde polymer.