You will share the joint copyright of the beat with the producer. The producer will get 50% of the writers credit for the completed song. This usually means 50% of all statutory publishing and mechanical royalties will be paid to the producer of the beat.