so umm this might be a little long but:
a counter,
2 buttons
3 wire repeaters
now get a button, set the “deactivation scope” to player.
now get a counter, set the target value to 2
connect the button to the counter: button pressed —> inclement counter
now get a wire repeater and use it to make a loop with the button:
button pressed —> send pulse
received pulse —> deactivate button
then get another wire repeater to get a loop with the counter:
target value reached —> send pulse
received pulse —> reset counter
now get another button and also set the “deactivation scope” to player
connect the button with the counter:
button pressed —> increment counter
and then make a loop with a wire repeater and the button
button pressed —> send pulse
received pulse —> deactivate button
now that you have done that connect the counter to the buttons:
target value reached —> deactivate button (1st one)
target value reached —> deactivate button (2nd one)
now cross connect the 2 buttons:
button pressed (1st) —> deactivate button (2nd)
button pressed (2nd) —> deactivate button (1st)
now get the counter and connect it to the teleporter
target value reached —> teleport player here
for most of the things above you can use channels (except for the wire repeater loops)
hope this helped