Form help - only allow user to proceed if form answers are correct

Hi there, I’m looking to build a simple form comprised of radio buttons (yes & no answers) and I need to build in some simple logic so that when the user presses the submit button, if the combination of answers is correct it loads the next page, but if the answers are incorrect (e.g. they chose no when they should have chosen yes) then a message appears telling them to try again. The correct combination is static and doesn’t need to change (can be hardcoded in). I haven’t started the project yet so I don’t have a URL to share, but was wondering if someone has any ideas or perhaps a cloneable project with someone similar I can look at?