Creating a "Try It" Button

Hello, I am trying to create a slide and have it check their work by entering a specific equation. How can I adjust or create code for that? Using the Try It or check my work features?