This is the concept of Real depth and apparent depth.
The formula for the same is given by,
Refractive index=Real depth/Apparent depth
Here, the letters printed on the printed page is at 9 cm, which signifies the real depth.
Refractive index is given =1.5,
we get
1.5=9/apparent depth
apparent depth=9/1.5
=6cm
At 6 cm from the top surface of cube will the letters appear when seen from above of the cube.