I will assume these says 12 SESSIONs
Let x = individual students
then 12- x = group sessions
Income from individuals x is 25 x
Income from group is 18(12-x) added together this equals 265
25 x + 18 ( 12-x) = 265 solve for x , the individuls, then group# = 25-x