Pseudocode Task

Hint: Calculate a bonus based on the score and time taken, then add it to the score.

INPUT score, time_taken // Assume numeric inputs
 
IF score > 100:
    IF time_taken < 30:
        bonus = 50
    ELSE:
        bonus = 20
    END IF // Inner IF
ELIF score > 50:
    bonus = 10
ELSE:
    bonus = 0
END IF // Outer IF
 
final_score = score + bonus
PRINT final_score // Changed OUTPUT to PRINT for Python-friendliness