Checking for Worked Answers

Hello

I’m getting the students to find the equation of a line between two points. If they get it wrong, I’d like for them to be able to press a button to access a worked solution without having to go to another screen. Is that possible?

Many thanks
Ingrid