Task: Translation
Input (Spanish): When X is 2-valent, q is 0 and when X is 4-valent, q is 1.
Output (English): Cuando X es divalente, q es 0 y cuando X es tetravalente, q es 1.