This doesn’t solve the problem you are asking, but rather another way you could do this is to have just one set of inputs and a repeating group showing the data created.
In my app a user creates ‘tiers’ for a plan and it looks like this:


When the ‘Add’ button is pressed a new row is created in the repeating group so the user can make as many ‘tiers’ as they want.