A tonal answer is used when the subject modulates to maintain the key. It alters intervals so the answer modulates to the tonic rather than further away. Guidelines include modifying where the dominant occurs and changing intervals like 2nd to 3rd or 4th to 5th. There is no single rule, but examples in J.S. Bach's Well-Tempered Clavier provide good practice writing tonal answers to subjects.