只要 + [condition],[subject] + 就 + [result]
[subject] + 只要 + [condition] + 就 + [result]
只要…就 says the condition is enough: meet it, and the result follows. 只要 opens the condition, and 就 goes before the verb of the result, after its subject.
The condition is often something small or easy, which is the point: that's all it takes.
只要 says the condition is enough; there may be other ways to the same result. 只有…才 says it is the only way. Side by side: