let x=upper limit and y=lower limit
classmark=(x+y)/2=5 then x+y=10(first equation)
Size of class interval=(x+0.5)-(y-0.5)=9 then x-y+1=9
x-y=8(second equation) by using simultenous equation
x=9 and y=8, therefore upper limit is 9 and lower limit is 8