(25<$percentage >=50) //line 39
Presumably you mean
(25<$percentage and $percentage <= 50)
What you've written is (a) bad syntax (as you've found), and (b) incorrect (since you have >= instead of <=)
Besides, if you wrote those tests in the opposite order there wouldn't be an issue:
if(75 < $percentage)
{
'geek';
}
elseif(50 < $percentage)
{
'good';
}
//....