The easiest way would be something like this:
create 2 global variables:
levelsunlocked - set to 1
levelscore - set to 0
on object 1 clicked - system add 10 to levelscore
on object 2 clicked - system subtract 10 from levelscore
levelscore > 0
levelscore = 300 - system add 1 to levelsunlocked
system trigger once while true