What you need is called a CROSS JOIN.
INSERT INTO C (FK_A, FK_B) SELECT A.A, B.B FROM A CROSS JOIN B;
INSERT INTO C (FK_A, FK_B)
SELECT A.A, B.B
FROM A CROSS JOIN B;
Try it this way