Answer:- From outdoor to class room on second floor:
Scholar can go into school at 2 ways. He can go to second floor from first floor in 3 ways.
Since, he has to do both,
No. of ways of going to class=2×3=6
In the similar 6 ways he can come back. Since, he has to go in and come back, total no. of ways=6×6=36.