digital pins and buttons

Can someone help?

Write 1-6 lines of code for use in the main function on the Arduino so that execution will only continue past your lines of code when the listed conditions are met. You can assume digital pin 10 has already been set up with mode INPUT_PULLUP and digital pin 13 with OUTPUT.

Execution only continues after button 10 is pressed and released fifty times. While the program is waiting for these fifty presses, the LED on pin 13 should also be turned on whenever the button is being pressed and be turned off whenever the button is not being pressed.

Delta_G:
When is this homework due?

If you have made some attempt then now would be the time to post it and ask for help with it. If you just want someone to do your homework for you, then please post the name and email of your professor / teacher and the name of the institution so we know who we're doing homework for and can ask questions about the assignment if needed.

It's not homework! It's a question on a practice final that I am struggling with.

(deleted)