Let's say we want to create a parking ramp by using Assembly Language 8051. How would a code should look?

A ramp is lift down (inactive), the driver presses a button (connected to INT0), after that the ramp starts to lift and after 10 seconds it's starts to descent again. In the 10-second period, all the buttons should be blocked, preventing a bill or ticket to be printed. After, going back (on exiting the parking lot, there is also a ramp.) This exit ramp shows the bill's bar code, and after reading the bar code, a signal is sent to INT1 which tells the ramp to start lifting itself again, and after 10 seconds it starts to descent again.

Hi. All I've got is this example for parking ramps, but the problem is that i don't know how to use the INT (0 and 1), and to apply the 10 sec. period on them. I should use 'counters' and 'interrupts' and 'oscillator'.This is the project, that mine passing grade depends on and I got only 3-4 days to complete, so please, anyone that can help me I'll appreciate greatly.As i said I only got this example: