[subject] + [time] + 就 + [verb] + 了
[subject] + [time] + 才 + [verb]
只要 + [clause],就 + [verb phrase]
只有 + [clause],才 + [verb phrase]
就 and 才 go before the verb and add the speaker's judgement to what comes before them. 就 says it happened early, easily or with little needed; 才 says it happened late, with difficulty or only after a lot.
With a time word before it, 就 means "already, sooner than expected" and 才 means "not until". 就 sentences end in 了; 才 sentences don't, because 才 already says the event was held back.
The same split works with a length of time or an amount of effort before the adverb. With 就 it took little; with 才 it took a lot.
只要…就 gives a condition that is enough: "as long as". 只有…才 gives one that is required: "only if". The two halves don't swap partners.
When 才 comes straight before a number, it means "only" – fewer, younger or earlier than you'd think. 就 in that position limits: "just that, nothing more".
就是 confirms what is already on the table; 才是 corrects it and points to the real one.