mysql – Add data in 2 different tables, one table depends on another

I have 2 different tables
First table with a column as a quorum.
In the second table, the number of inserted rows must be equal to the value entered by the user in the quorum field in the first table

Have unique form for this.

Help me write the SQL query